Page MenuHomePhabricator

D67385.id219479.diff
No OneTemporary

File Metadata

Created
Fri, Jan 24, 9:47 AM

D67385.id219479.diff

Index: clang/lib/Driver/ToolChains/CommonArgs.cpp
===================================================================
--- clang/lib/Driver/ToolChains/CommonArgs.cpp
+++ clang/lib/Driver/ToolChains/CommonArgs.cpp
@@ -396,6 +396,12 @@
CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=O") + OOpt));
}
+ if (const Arg *A = Args.getLastArg(options::OPT_mcmodel_EQ)) {
+ StringRef ModelArg = A->getValue();
+ CmdArgs.push_back(
+ Args.MakeArgString(Twine("-plugin-opt=--code-model=") + ModelArg));
+ }
+
if (Args.hasArg(options::OPT_gsplit_dwarf)) {
CmdArgs.push_back(
Args.MakeArgString(Twine("-plugin-opt=dwo_dir=") +

Event Timeline