diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-02-09 19:07:13 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-02-09 19:07:13 +0000 |
commit | c382abfd73d10aeb5bcbfbad5db3b4b7fdd0702d (patch) | |
tree | efe27b6e71e20901af47d0e335e0da3f7a63441c | |
parent | af75b197363fd65d53e2d32773523d051656a7fa (diff) | |
download | bcm5719-llvm-c382abfd73d10aeb5bcbfbad5db3b4b7fdd0702d.tar.gz bcm5719-llvm-c382abfd73d10aeb5bcbfbad5db3b4b7fdd0702d.zip |
[ASTUnit] Change the parameter of ASTUnit::LoadFromCompilerInvocationAction to accept a more general FrontendAction.
llvm-svn: 260251
-rw-r--r-- | clang/include/clang/Frontend/ASTUnit.h | 4 | ||||
-rw-r--r-- | clang/lib/Frontend/ASTUnit.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/Frontend/ASTUnit.h b/clang/include/clang/Frontend/ASTUnit.h index a5f7af57143..04e6dce5110 100644 --- a/clang/include/clang/Frontend/ASTUnit.h +++ b/clang/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<PCHContainerOperations> PCHContainerOps, IntrusiveRefCntPtr<DiagnosticsEngine> 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/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp index e6ba29201f8..54ac6048bc1 100644 --- a/clang/lib/Frontend/ASTUnit.cpp +++ b/clang/lib/Frontend/ASTUnit.cpp @@ -1723,7 +1723,7 @@ ASTUnit *ASTUnit::create(CompilerInvocation *CI, ASTUnit *ASTUnit::LoadFromCompilerInvocationAction( CompilerInvocation *CI, std::shared_ptr<PCHContainerOperations> PCHContainerOps, - IntrusiveRefCntPtr<DiagnosticsEngine> Diags, ASTFrontendAction *Action, + IntrusiveRefCntPtr<DiagnosticsEngine> 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<TopLevelDeclTrackerAction> TrackerAct; if (!Act) { |