aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2016-01-06 07:24:45 +0000
committerEric Christopher <echristo@gmail.com>2016-01-06 07:24:45 +0000
commit29a50bccb98818d0beac75771242a24b0e7da0c3 (patch)
treed6f2d6bafb52584a175c77df6a2814b32f959f9a /clang/lib/Driver/Tools.cpp
parent1b94d9a3cc337d597147ac8ebaa106d8c11ef029 (diff)
downloadllvm-29a50bccb98818d0beac75771242a24b0e7da0c3.zip
llvm-29a50bccb98818d0beac75771242a24b0e7da0c3.tar.gz
llvm-29a50bccb98818d0beac75771242a24b0e7da0c3.tar.bz2
Change the set of actions built for external gcc tools.
A gcc tool has an "integrated" assembler (usually gas) that it will call to produce an object. Let it use that assembler so that we don't have to deal with assembly syntax incompatibilities. llvm-svn: 256919
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 7af1899..c614452 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -6179,6 +6179,11 @@ void gcc::Compiler::RenderExtraToolArgs(const JobAction &JA,
case types::TY_LTO_BC:
CmdArgs.push_back("-c");
break;
+ // We assume we've got an "integrated" assembler in that gcc will produce an
+ // object file itself.
+ case types::TY_Object:
+ CmdArgs.push_back("-c");
+ break;
case types::TY_PP_Asm:
CmdArgs.push_back("-S");
break;