llvm-project/lld/COFF
Alexandre Ganea 83d59e05b2 Re-land [LLD] Remove global state in lldCommon
Move all variables at file-scope or function-static-scope into a hosting structure (lld::CommonLinkerContext) that lives at lldMain()-scope. Drivers will inherit from this structure and add their own global state, in the same way as for the existing COFFLinkerContext.

See discussion in https://lists.llvm.org/pipermail/llvm-dev/2021-June/151184.html

The previous land f860fe3622 caused issues in https://lab.llvm.org/buildbot/#/builders/123/builds/8383, fixed by 22ee510dac.

Differential Revision: https://reviews.llvm.org/D108850
2022-01-20 14:53:26 -05:00
..
CMakeLists.txt Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
COFFLinkerContext.cpp Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
COFFLinkerContext.h Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
CallGraphSort.cpp Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
CallGraphSort.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
Chunks.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
Chunks.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
Config.h [LLD][COFF] Support GNU style == aliases 2022-01-19 14:22:13 +01:00
DLL.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
DLL.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
DebugTypes.cpp lld: const-qualify iterations through VarStreamArray, NFC 2021-11-12 14:29:49 -08:00
DebugTypes.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
Driver.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
Driver.h [lld-link] Change config and driver to unique_ptr 2022-01-11 18:31:25 -08:00
DriverUtils.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
ICF.cpp Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
ICF.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
InputFiles.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
InputFiles.h [lld-link] Replace LazyObjFile with lazy ObjFile/BitcodeFile 2022-01-04 15:11:44 -08:00
LLDMapFile.cpp Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
LLDMapFile.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
LTO.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
LTO.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
MapFile.cpp Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
MapFile.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
MarkLive.cpp Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
MarkLive.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
MinGW.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
MinGW.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
Options.td [lld/coff] Add parsing for /pdbpagesize: flag 2021-10-31 18:36:23 -04:00
PDB.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
PDB.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
README.md
SymbolTable.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
SymbolTable.h [lld-link] Replace LazyObjFile with lazy ObjFile/BitcodeFile 2022-01-04 15:11:44 -08:00
Symbols.cpp [lld] Add support for other demanglers other than Itanium 2022-01-05 03:25:41 +00:00
Symbols.h [lld-link] Replace LazyObjFile with lazy ObjFile/BitcodeFile 2022-01-04 15:11:44 -08:00
TypeMerger.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00
Writer.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
Writer.h Reland "[LLD] Remove global state in lld/COFF" after fixing asan and msan test failures 2021-09-17 17:18:42 -07:00

README.md

See docs/NewLLD.rst