1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/tools/dsymutil
serge-sans-paille c884b23a0a Replace MCTargetOptionsCommandFlags.inc and CommandFlags.inc by runtime registration
MCTargetOptionsCommandFlags.inc and CommandFlags.inc are headers which contain
cl::opt with static storage.
These headers are meant to be incuded by tools to make it easier to parametrize
codegen/mc.

However, these headers are also included in at least two libraries: lldCommon
and handle-llvm. As a result, when creating DYLIB, clang-cpp holds a reference
to the options, and lldCommon holds another reference. Linking the two in a
single executable, as zig does[0], results in a double registration.

This patch explores an other approach: the .inc files are moved to regular
files, and the registration happens on-demand through static declaration of
options in the constructor of a static object.

[0] https://bugzilla.redhat.com/show_bug.cgi?id=1756977#c5

Differential Revision: https://reviews.llvm.org/D75579
2020-03-17 14:01:30 +01:00
..
BinaryHolder.cpp Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
BinaryHolder.h Drop a StringMap.h include, NFC 2020-03-11 15:45:34 -07:00
CFBundle.cpp Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
CFBundle.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt [dsymutil] Explicitly link against libatomic when necessary 2020-02-17 22:28:18 +00:00
DebugMap.cpp Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
DebugMap.h Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
dsymutil.cpp [Support] On Windows, ensure hardware_concurrency() extends to all CPU sockets and all NUMA groups 2020-02-14 10:24:22 -05:00
dsymutil.h [dsymutil] Pass LinkOptions by value instead of const ref. 2019-07-30 19:34:26 +00:00
DwarfLinkerForBinary.cpp [DWARFLinker][NFC] Remove usages of "const object::ObjectFile" from DWARFLinker. 2020-02-28 13:26:22 +03:00
DwarfLinkerForBinary.h [DWARFLinker][NFC] Remove usages of "const object::ObjectFile" from DWARFLinker. 2020-02-28 13:26:22 +03:00
DwarfStreamer.cpp Replace MCTargetOptionsCommandFlags.inc and CommandFlags.inc by runtime registration 2020-03-17 14:01:30 +01:00
DwarfStreamer.h [DWARFLinker][NFC] Remove usages of "const object::ObjectFile" from DWARFLinker. 2020-02-28 13:26:22 +03:00
LinkUtils.h [Dsymutil][Debuginfo][NFC] #4 Refactor dsymutil to separate DWARF optimizing part. 2020-01-23 18:16:32 +03:00
LLVMBuild.txt [Dsymutil][Debuginfo][NFC] Reland: Refactor dsymutil to separate DWARF optimizing part. #2. 2020-01-08 14:15:31 +03:00
MachODebugMapParser.cpp Fix a copy and paste error that would cause a crash. 2020-03-06 18:07:36 -08:00
MachOUtils.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
MachOUtils.h Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Options.td [dsymutil] Support --out (NFC) 2019-12-03 17:08:32 -08:00
SymbolMap.cpp [llvm] Replace SmallStr.str().str() with std::string conversion operator. 2020-01-29 21:16:46 -08:00
SymbolMap.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00