[cfe-commits] r82105 - /cfe/trunk/lib/Driver/Tools.cpp

Daniel Dunbar daniel at zuster.org
Wed Sep 16 17:47:53 PDT 2009


Author: ddunbar
Date: Wed Sep 16 19:47:53 2009
New Revision: 82105

URL: http://llvm.org/viewvc/llvm-project?rev=82105&view=rev
Log:
We don't need a -compile-ast clang-cc action, we can just use -S.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=82105&r1=82104&r2=82105&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Sep 16 19:47:53 2009
@@ -512,10 +512,7 @@
     } 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");
     }





More information about the cfe-commits mailing list