[cfe-commits] r109680 - /cfe/trunk/lib/Frontend/ASTUnit.cpp
Douglas Gregor
dgregor at apple.com
Wed Jul 28 15:12:37 PDT 2010
Author: dgregor
Date: Wed Jul 28 17:12:37 2010
New Revision: 109680
URL: http://llvm.org/viewvc/llvm-project?rev=109680&view=rev
Log:
Turn off precompiled preamble support for C++
Modified:
cfe/trunk/lib/Frontend/ASTUnit.cpp
Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=109680&r1=109679&r2=109680&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Wed Jul 28 17:12:37 2010
@@ -789,7 +789,8 @@
CI->getPreprocessorOpts().RetainRemappedFileBuffers = true;
llvm::MemoryBuffer *OverrideMainBuffer = 0;
- if (PrecompilePreamble)
+ // FIXME: When C++ PCH is ready, allow use of it for a precompiled preamble.
+ if (PrecompilePreamble && !CI->getLangOpts().CPlusPlus)
OverrideMainBuffer = AST->BuildPrecompiledPreamble();
if (!AST->Parse(OverrideMainBuffer))
More information about the cfe-commits
mailing list