[PATCH] D157029: [llvm] Construct option spelling at compile-time
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 3 13:24:29 PDT 2023
jansvoboda11 created this revision.
jansvoboda11 added a reviewer: MaskRay.
Herald added subscribers: ormris, ributzka, kadircet, arphaman, hiraditya.
Herald added a reviewer: alexander-shaposhnikov.
Herald added a reviewer: jhenderson.
Herald added a project: All.
jansvoboda11 requested review of this revision.
Herald added projects: clang, LLVM, clang-tools-extra.
Herald added subscribers: cfe-commits, llvm-commits.
Some Clang command-line handling code could benefit from the option spelling being a `StringLiteral`. This patch changes the `llvm::opt` TableGen backend to generate the "canonical" spelling and emit it into the .inc file.
Depends on D157028 <https://reviews.llvm.org/D157028>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157029
Files:
clang-tools-extra/clangd/CompileCommands.cpp
clang/lib/Frontend/CompilerInvocation.cpp
llvm/include/llvm/Option/OptTable.h
llvm/include/llvm/Option/Option.h
llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.cpp
llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.h
llvm/tools/llvm-lipo/llvm-lipo.cpp
llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
llvm/tools/llvm-objdump/ObjdumpOptID.h
llvm/tools/llvm-objdump/llvm-objdump.cpp
llvm/tools/llvm-rc/llvm-rc.cpp
llvm/utils/TableGen/OptParserEmitter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157029.546987.patch
Type: text/x-patch
Size: 25264 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230803/7ad582c4/attachment-0001.bin>
More information about the cfe-commits
mailing list