From 2c499f6561c601f7173c4682696fce1ff8c96b56 Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Wed, 18 Aug 2010 23:56:43 +0000 Subject: Rename PCHReader to ASTReader. llvm-svn: 111467 --- clang/lib/Frontend/CompilerInstance.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'clang/lib/Frontend/CompilerInstance.cpp') diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 5db6125..b930702 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -264,25 +264,25 @@ CompilerInstance::createPCHExternalASTSource(llvm::StringRef Path, Preprocessor &PP, ASTContext &Context, void *DeserializationListener) { - llvm::OwningPtr Reader; - Reader.reset(new PCHReader(PP, &Context, + llvm::OwningPtr Reader; + Reader.reset(new ASTReader(PP, &Context, Sysroot.empty() ? 0 : Sysroot.c_str(), DisablePCHValidation)); Reader->setDeserializationListener( static_cast(DeserializationListener)); switch (Reader->ReadPCH(Path)) { - case PCHReader::Success: + case ASTReader::Success: // Set the predefines buffer as suggested by the PCH reader. Typically, the // predefines buffer will be empty. PP.setPredefines(Reader->getSuggestedPredefines()); return Reader.take(); - case PCHReader::Failure: + case ASTReader::Failure: // Unrecoverable failure: don't even try to process the input file. break; - case PCHReader::IgnorePCH: + case ASTReader::IgnorePCH: // No suitable PCH file could be found. Return an error. break; } -- cgit v1.1