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 /llvm/tools/llvm-ifs/llvm-ifs.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 'llvm/tools/llvm-ifs/llvm-ifs.cpp')
-rw-r--r-- | llvm/tools/llvm-ifs/llvm-ifs.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvm-ifs/llvm-ifs.cpp b/llvm/tools/llvm-ifs/llvm-ifs.cpp index f64acf96..bef2800 100644 --- a/llvm/tools/llvm-ifs/llvm-ifs.cpp +++ b/llvm/tools/llvm-ifs/llvm-ifs.cpp @@ -60,12 +60,11 @@ enum ID { #undef OPTION }; -#define PREFIX(NAME, VALUE) \ - static constexpr std::initializer_list<StringLiteral> NAME = VALUE; +#define PREFIX(NAME, VALUE) const char *const NAME[] = VALUE; #include "Opts.inc" #undef PREFIX -static constexpr std::initializer_list<opt::OptTable::Info> InfoTable = { +static constexpr opt::OptTable::Info InfoTable[] = { #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \ HELPTEXT, METAVAR, VALUES) \ { \ |