[PATCH] D157054: [clang] NFC: Use compile-time option spelling when generating command line
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 8 18:02:52 PDT 2023
jansvoboda11 updated this revision to Diff 548425.
jansvoboda11 added a comment.
Rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157054/new/
https://reviews.llvm.org/D157054
Files:
clang/lib/Frontend/CompilerInvocation.cpp
Index: clang/lib/Frontend/CompilerInvocation.cpp
===================================================================
--- clang/lib/Frontend/CompilerInvocation.cpp
+++ clang/lib/Frontend/CompilerInvocation.cpp
@@ -615,7 +615,7 @@
static void GenerateArg(ArgumentConsumer Consumer,
llvm::opt::OptSpecifier OptSpecifier) {
Option Opt = getDriverOptTable().getOption(OptSpecifier);
- denormalizeSimpleFlag(Consumer, Opt.getPrefix() + Opt.getName(),
+ denormalizeSimpleFlag(Consumer, Opt.getPrefixedName(),
Option::OptionClass::FlagClass, 0);
}
@@ -623,8 +623,7 @@
llvm::opt::OptSpecifier OptSpecifier,
const Twine &Value) {
Option Opt = getDriverOptTable().getOption(OptSpecifier);
- denormalizeString(Consumer, Opt.getPrefix() + Opt.getName(), Opt.getKind(), 0,
- Value);
+ denormalizeString(Consumer, Opt.getPrefixedName(), Opt.getKind(), 0, Value);
}
// Parse command line arguments into CompilerInvocation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157054.548425.patch
Type: text/x-patch
Size: 1044 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230809/2ec303b5/attachment.bin>
More information about the cfe-commits
mailing list