]> granicus.if.org Git - clang/commitdiff
[Hexagon] driver uses out-of-date option name and binary name
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Fri, 28 Jun 2019 15:08:03 +0000 (15:08 +0000)
committerKrzysztof Parzyszek <kparzysz@quicinc.com>
Fri, 28 Jun 2019 15:08:03 +0000 (15:08 +0000)
Patch by A. Skrobov (t.yomitch).

Differential Revision: https://reviews.llvm.org/D62127

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364648 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/Hexagon.cpp

index 5872d9b195cc20edffc58c2b78ea984cc6965772..f2c3ea11a9f3f4afc7954da4d76d114c10ad843a 100644 (file)
@@ -130,11 +130,11 @@ void hexagon::Assembler::ConstructJob(Compilation &C, const JobAction &JA,
   const Driver &D = HTC.getDriver();
   ArgStringList CmdArgs;
 
-  CmdArgs.push_back("-march=hexagon");
+  CmdArgs.push_back("--arch=hexagon");
 
   RenderExtraToolArgs(JA, CmdArgs);
 
-  const char *AsName = "hexagon-llvm-mc";
+  const char *AsName = "llvm-mc";
   CmdArgs.push_back("-filetype=obj");
   CmdArgs.push_back(Args.MakeArgString(
       "-mcpu=hexagon" +