diff options
author | Vitaly Buka <vitalybuka@google.com> | 2022-12-25 22:54:27 -0800 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2022-12-25 23:12:47 -0800 |
commit | aa171833ab0017d9732e82b8682c9848ab25ff9e (patch) | |
tree | 7c7787d45628615c0637ff4954d5ebd1e6f60945 /lld/MinGW/Driver.cpp | |
parent | 904a79f99153d9d8ed67beeed82a0f910bb000fd (diff) | |
download | llvm-aa171833ab0017d9732e82b8682c9848ab25ff9e.zip llvm-aa171833ab0017d9732e82b8682c9848ab25ff9e.tar.gz llvm-aa171833ab0017d9732e82b8682c9848ab25ff9e.tar.bz2 |
Revert "[clang] Use a StringRef instead of a raw char pointer to store builtin and call information"
Revert "Fix lldb option handling since e953ae5bbc313fd0cc980ce021d487e5b5199ea4 (part 2)"
Revert "Fix lldb option handling since e953ae5bbc313fd0cc980ce021d487e5b5199ea4"
GCC build hangs on this bot https://lab.llvm.org/buildbot/#/builders/37/builds/19104
compiling CMakeFiles/obj.clangBasic.dir/Targets/AArch64.cpp.d
The bot uses GNU 11.3.0, but I can reproduce locally with gcc (Debian 12.2.0-3) 12.2.0.
This reverts commit caa713559bd38f337d7d35de35686775e8fb5175.
This reverts commit 06b90e2e9c991e211fecc97948e533320a825470.
This reverts commit e953ae5bbc313fd0cc980ce021d487e5b5199ea4.
Diffstat (limited to 'lld/MinGW/Driver.cpp')
-rw-r--r-- | lld/MinGW/Driver.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp index 6766f2b..cab2d0c 100644 --- a/lld/MinGW/Driver.cpp +++ b/lld/MinGW/Driver.cpp @@ -61,10 +61,7 @@ enum { }; // Create prefix string literals used in Options.td -#define PREFIX(NAME, VALUE) \ - static constexpr llvm::StringLiteral NAME##_init[] = VALUE; \ - static constexpr llvm::ArrayRef<llvm::StringLiteral> NAME( \ - NAME##_init, std::size(NAME##_init) - 1); +#define PREFIX(NAME, VALUE) static const char *const NAME[] = VALUE; #include "Options.inc" #undef PREFIX |