[cfe-commits] r95876 - /cfe/trunk/lib/Driver/Tools.cpp
Daniel Dunbar
daniel at zuster.org
Thu Feb 11 09:33:46 PST 2010
Author: ddunbar
Date: Thu Feb 11 11:33:45 2010
New Revision: 95876
URL: http://llvm.org/viewvc/llvm-project?rev=95876&view=rev
Log:
Driver: Fix clang -ccc-no-clang -x c++-header foo.h on Darwin.
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=95876&r1=95875&r2=95876&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Feb 11 11:33:45 2010
@@ -1746,7 +1746,8 @@
else if (Output.getType() == types::TY_AST)
D.Diag(clang::diag::err_drv_no_ast_support)
<< getToolChain().getTripleString();
- else if (JA.getType() != types::TY_PP_Asm)
+ else if (JA.getType() != types::TY_PP_Asm &&
+ JA.getType() != types::TY_PCH)
D.Diag(clang::diag::err_drv_invalid_gcc_output_type)
<< getTypeName(JA.getType());
More information about the cfe-commits
mailing list