diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-08-18 23:56:56 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-08-18 23:56:56 +0000 |
commit | 571db7f0cb31789737be92fce1c1b738e6dbe795 (patch) | |
tree | 550345b729b063f06c2a59b98bd116a0bf71bc76 /lib/Frontend | |
parent | 60adf4acf40b72227740bf966fb87eebddff3f37 (diff) |
Rename various classes from PCH to AST.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend')
-rw-r--r-- | lib/Frontend/ASTUnit.cpp | 4 | ||||
-rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 4 | ||||
-rw-r--r-- | lib/Frontend/FrontendAction.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp index 7a2a5afe9a..e0aa1b47e7 100644 --- a/lib/Frontend/ASTUnit.cpp +++ b/lib/Frontend/ASTUnit.cpp @@ -304,7 +304,7 @@ namespace { /// \brief Gathers information from ASTReader that will be used to initialize /// a Preprocessor. -class PCHInfoCollector : public PCHReaderListener { +class PCHInfoCollector : public ASTReaderListener { LangOptions &LangOpt; HeaderSearch &HSI; std::string &TargetTriple; @@ -463,7 +463,7 @@ ASTUnit *ASTUnit::LoadFromPCHFile(const std::string &Filename, Reader->setListener(new PCHInfoCollector(LangInfo, HeaderInfo, TargetTriple, Predefines, Counter)); - switch (Reader->ReadPCH(Filename)) { + switch (Reader->ReadAST(Filename)) { case ASTReader::Success: break; diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index b930702ef4..1cac78e971 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -270,8 +270,8 @@ CompilerInstance::createPCHExternalASTSource(llvm::StringRef Path, DisablePCHValidation)); Reader->setDeserializationListener( - static_cast<PCHDeserializationListener *>(DeserializationListener)); - switch (Reader->ReadPCH(Path)) { + static_cast<ASTDeserializationListener *>(DeserializationListener)); + switch (Reader->ReadAST(Path)) { case ASTReader::Success: // Set the predefines buffer as suggested by the PCH reader. Typically, the // predefines buffer will be empty. diff --git a/lib/Frontend/FrontendAction.cpp b/lib/Frontend/FrontendAction.cpp index 40b4e7fa24..906fd9a76c 100644 --- a/lib/Frontend/FrontendAction.cpp +++ b/lib/Frontend/FrontendAction.cpp @@ -122,7 +122,7 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI, CI.getPreprocessorOpts().ImplicitPCHInclude, CI.getPreprocessorOpts().DisablePCHValidation, CI.getInvocation().getFrontendOpts().ChainedPCH? - Consumer->GetPCHDeserializationListener() : 0); + Consumer->GetASTDeserializationListener() : 0); if (!CI.getASTContext().getExternalSource()) goto failure; } |