llvm-capstone/lld/wasm
Sam Clegg 0362633fd2 [WebAssembly] Add support for --gc-sections
In this initial version we only GC symbols with `hidden` visibility since
other symbols we export to the embedder.

We could potentially modify this the future and only use symbols
explicitly passed via `--export` as GC roots.

This version of the code only does GC of data and code. GC for the
types section is coming soon.

Differential Revision: https://reviews.llvm.org/D42511

llvm-svn: 323842
2018-01-31 01:45:47 +00:00
..
CMakeLists.txt [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
Config.h [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
Driver.cpp [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
InputChunks.cpp [WebAssembly] Add getName and getFileName methods to InputChunk base class. NFC. 2018-01-28 19:57:03 +00:00
InputChunks.h [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
InputFiles.cpp [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
InputFiles.h [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
MarkLive.cpp [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
MarkLive.h [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
Options.td [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
OutputSections.cpp [WebAssembly] Move relocation handling InputChunks.cpp 2018-01-10 19:22:42 +00:00
OutputSections.h [WebAssembly] Add InputChunk as common base class for InputSegment and InputFunction. NFC. 2018-01-10 01:13:34 +00:00
OutputSegment.h Revert "[WebAssembly] Move checking of InputSegment comdat group earlier" 2018-01-13 15:57:48 +00:00
Symbols.cpp clang format 2018-01-28 19:57:02 +00:00
Symbols.h clang format 2018-01-28 19:57:02 +00:00
SymbolTable.cpp clang format 2018-01-28 19:57:02 +00:00
SymbolTable.h clang format 2018-01-28 19:57:02 +00:00
Writer.cpp [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
Writer.h
WriterUtils.cpp [WebAssembly] Allow function signature checking at link time 2017-11-30 01:40:08 +00:00
WriterUtils.h [WebAssembly] Allow function signature checking at link time 2017-11-30 01:40:08 +00:00