]> granicus.if.org Git - clang/commitdiff
We don't need a -compile-ast clang-cc action, we can just use -S.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 17 Sep 2009 00:47:53 +0000 (00:47 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 17 Sep 2009 00:47:53 +0000 (00:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82105 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index da533f16bd85140f892b785e1fe589d4cba5939d..13d9923c17b74a4a3a5bc1c841dda6cf3a6b2840 100644 (file)
@@ -512,10 +512,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
     } else if (JA.getType() == types::TY_LLVMBC) {
       CmdArgs.push_back("-emit-llvm-bc");
     } else if (JA.getType() == types::TY_PP_Asm) {
-      if (Inputs[0].getType() == types::TY_AST)
-        CmdArgs.push_back("-compile-ast");
-      else
-        CmdArgs.push_back("-S");
+      CmdArgs.push_back("-S");
     } else if (JA.getType() == types::TY_AST) {
       CmdArgs.push_back("-emit-pch");
     }