Turn off precompiled preamble support for C++

llvm-svn: 109680
This commit is contained in:
Douglas Gregor 2010-07-28 22:12:37 +00:00
parent 6982dd4e1f
commit a5fd522992
1 changed files with 2 additions and 1 deletions

View File

@ -789,7 +789,8 @@ ASTUnit *ASTUnit::LoadFromCompilerInvocation(CompilerInvocation *CI,
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))