[PATCH] D40476: Switch kryo to use -mcpu=cortex-a57 when invoking the assembler

Stephen Hines via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 27 10:01:19 PST 2017


srhines added inline comments.


================
Comment at: lib/Driver/ToolChains/Gnu.cpp:661
     Arg *A;
-    if ((A = Args.getLastArg(options::OPT_mcpu_EQ)) &&
-        StringRef(A->getValue()).equals_lower("krait"))
-      CmdArgs.push_back("-mcpu=cortex-a15");
-    else
-      Args.AddLastArg(CmdArgs, options::OPT_mcpu_EQ);
+    if ((A = Args.getLastArg(options::OPT_mcpu_EQ))) {
+      StringRef CPUArg(A->getValue());
----------------
Arg *A can also get moved here.


https://reviews.llvm.org/D40476





More information about the cfe-commits mailing list