From 63aabf17df7903430bb2a62a3abddf79950b56f1 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 9 Feb 2016 19:07:13 +0000 Subject: [PATCH] [ASTUnit] Change the parameter of ASTUnit::LoadFromCompilerInvocationAction to accept a more general FrontendAction. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260251 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Frontend/ASTUnit.h | 4 ++-- lib/Frontend/ASTUnit.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/clang/Frontend/ASTUnit.h b/include/clang/Frontend/ASTUnit.h index a5f7af5714..04e6dce511 100644 --- a/include/clang/Frontend/ASTUnit.h +++ b/include/clang/Frontend/ASTUnit.h @@ -60,7 +60,7 @@ class PCHContainerOperations; class PCHContainerReader; class SourceManager; class TargetInfo; -class ASTFrontendAction; +class FrontendAction; class ASTDeserializationListener; /// \brief Utility class for loading a ASTContext from an AST file. @@ -781,7 +781,7 @@ public: CompilerInvocation *CI, std::shared_ptr PCHContainerOps, IntrusiveRefCntPtr Diags, - ASTFrontendAction *Action = nullptr, ASTUnit *Unit = nullptr, + FrontendAction *Action = nullptr, ASTUnit *Unit = nullptr, bool Persistent = true, StringRef ResourceFilesPath = StringRef(), bool OnlyLocalDecls = false, bool CaptureDiagnostics = false, unsigned PrecompilePreambleAfterNParses = 0, diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp index e6ba29201f..54ac6048bc 100644 --- a/lib/Frontend/ASTUnit.cpp +++ b/lib/Frontend/ASTUnit.cpp @@ -1723,7 +1723,7 @@ ASTUnit *ASTUnit::create(CompilerInvocation *CI, ASTUnit *ASTUnit::LoadFromCompilerInvocationAction( CompilerInvocation *CI, std::shared_ptr PCHContainerOps, - IntrusiveRefCntPtr Diags, ASTFrontendAction *Action, + IntrusiveRefCntPtr Diags, FrontendAction *Action, ASTUnit *Unit, bool Persistent, StringRef ResourceFilesPath, bool OnlyLocalDecls, bool CaptureDiagnostics, unsigned PrecompilePreambleAfterNParses, bool CacheCodeCompletionResults, @@ -1812,7 +1812,7 @@ ASTUnit *ASTUnit::LoadFromCompilerInvocationAction( // Create the source manager. Clang->setSourceManager(&AST->getSourceManager()); - ASTFrontendAction *Act = Action; + FrontendAction *Act = Action; std::unique_ptr TrackerAct; if (!Act) { -- 2.50.1