diff options
author | serge-sans-paille <sguelton@mozilla.com> | 2022-12-23 11:36:56 +0100 |
---|---|---|
committer | serge-sans-paille <sguelton@mozilla.com> | 2022-12-23 11:36:56 +0100 |
commit | b7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f (patch) | |
tree | 9059fcc00424d7b8bbdf317a777620d0fee08e8c /lld/MinGW/Driver.cpp | |
parent | 719d98dfa841c522d8d452f0685e503538415a53 (diff) | |
download | llvm-b7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f.zip llvm-b7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f.tar.gz llvm-b7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f.tar.bz2 |
Revert "[clang] Use a StringRef instead of a raw char pointer to store builtin and call information"
Failing builds: https://lab.llvm.org/buildbot#builders/9/builds/19030
This is GCC specific and has been reported upstream: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108158
This reverts commit 719d98dfa841c522d8d452f0685e503538415a53.
Diffstat (limited to 'lld/MinGW/Driver.cpp')
-rw-r--r-- | lld/MinGW/Driver.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp index b35fbd6..cab2d0c 100644 --- a/lld/MinGW/Driver.cpp +++ b/lld/MinGW/Driver.cpp @@ -61,13 +61,12 @@ enum { }; // Create prefix string literals used in Options.td -#define PREFIX(NAME, VALUE) \ - static constexpr std::initializer_list<llvm::StringLiteral> NAME = VALUE; +#define PREFIX(NAME, VALUE) static const char *const NAME[] = VALUE; #include "Options.inc" #undef PREFIX // Create table mapping all options defined in Options.td -static constexpr std::initializer_list<opt::OptTable::Info> infoTable = { +static constexpr opt::OptTable::Info infoTable[] = { #define OPTION(X1, X2, ID, KIND, GROUP, ALIAS, X7, X8, X9, X10, X11, X12) \ {X1, X2, X10, X11, OPT_##ID, opt::Option::KIND##Class, \ X9, X8, OPT_##GROUP, OPT_##ALIAS, X7, X12}, |