[PATCH] D85802: [clang] Add -fc++-abi= flag for specifying which C++ ABI to use
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 13 12:01:47 PDT 2020
MaskRay added inline comments.
================
Comment at: clang/include/clang/Basic/LangOptions.h:299
+ /// This overrides the default ABI used by the target.
+ TargetCXXABI::Kind CXXABIOverride;
+ bool HasCXXABIOverride = false;
----------------
This is usually represented with llvm::Optional
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:4969
+ if (Arg *A = Args.getLastArg(options::OPT_fcxx_abi_EQ))
+ CmdArgs.push_back(Args.MakeArgString("-fc++-abi=" + Twine(A->getValue())));
+
----------------
See `A->render`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85802/new/
https://reviews.llvm.org/D85802
More information about the cfe-commits
mailing list