llvm-capstone/lld/wasm
Rui Ueyama e3498ec562 [WebAssembly] Separate addUndefined into addUndefined{Function,Data,Global}.
Previously, one function adds all types of undefined symbols. That
doesn't fit to the wasm's undefined symbol semantics well because
different types of undefined symbols are very different in wasm.
As a result, separate control flows merge in this addUndefined function
and then separate again for each type. That wasn't easy to read.

This patch separates the function into three functions. Now it is pretty
clear what we are doing for each undefined symbol type.

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

llvm-svn: 326271
2018-02-28 00:09:22 +00:00
..
CMakeLists.txt [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
Config.h [WebAssembly] Refactor linker-generated symbols. NFC. 2018-02-02 22:59:56 +00:00
Driver.cpp [WebAssembly] Separate addUndefined into addUndefined{Function,Data,Global}. 2018-02-28 00:09:22 +00:00
InputChunks.cpp [WebAssembly] Add explicit symbol table 2018-02-23 05:08:53 +00:00
InputChunks.h [WebAssembly] Add explicit symbol table 2018-02-23 05:08:53 +00:00
InputFiles.cpp [WebAssembly] Separate addUndefined into addUndefined{Function,Data,Global}. 2018-02-28 00:09:22 +00:00
InputFiles.h [WebAssembly] Add explicit symbol table 2018-02-23 05:08:53 +00:00
InputGlobal.h [WebAssembly] Add explicit symbol table 2018-02-23 05:08:53 +00:00
MarkLive.cpp [WebAssembly] Add explicit symbol table 2018-02-23 05:08:53 +00:00
MarkLive.h Consistent (non) use of empty lines in include blocks 2018-02-20 21:53:18 +00:00
Options.td [WebAssembly] Add support for --gc-sections 2018-01-31 01:45:47 +00:00
OutputSections.cpp Consistent (non) use of empty lines in include blocks 2018-02-20 21:53:18 +00:00
OutputSections.h Refactor wasm/WriterUtil.{cpp,h}. 2018-02-16 20:38:00 +00:00
OutputSegment.h [WebAssembly] Add explicit symbol table 2018-02-23 05:08:53 +00:00
Symbols.cpp [WebAssembly] Add explicit symbol table 2018-02-23 05:08:53 +00:00
Symbols.h [WebAssembly] Remove dead code. 2018-02-24 02:43:31 +00:00
SymbolTable.cpp [WebAssembly] Separate addUndefined into addUndefined{Function,Data,Global}. 2018-02-28 00:09:22 +00:00
SymbolTable.h [WebAssembly] Separate addUndefined into addUndefined{Function,Data,Global}. 2018-02-28 00:09:22 +00:00
Writer.cpp [WebAssembly] Use StringRef instead of const char *. 2018-02-28 00:01:31 +00:00
Writer.h
WriterUtils.cpp [WebAssembly] Add explicit symbol table 2018-02-23 05:08:53 +00:00
WriterUtils.h [WebAssembly] Add explicit symbol table 2018-02-23 05:08:53 +00:00