From 486754660bb926339aefcf012a3f848592babb8b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 28 Jul 2018 11:06:01 +0000 Subject: Vendor import of clang trunk r338150: https://llvm.org/svn/llvm-project/cfe/trunk@338150 --- lib/FrontendTool/ExecuteCompilerInvocation.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/FrontendTool/ExecuteCompilerInvocation.cpp') diff --git a/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/lib/FrontendTool/ExecuteCompilerInvocation.cpp index 4167e1fe20b8..ac2ee50a1e4b 100644 --- a/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -32,6 +32,8 @@ using namespace clang; using namespace llvm::opt; +namespace clang { + static std::unique_ptr CreateFrontendBaseAction(CompilerInstance &CI) { using namespace clang::frontend; @@ -43,6 +45,8 @@ CreateFrontendBaseAction(CompilerInstance &CI) { case ASTDump: return llvm::make_unique(); case ASTPrint: return llvm::make_unique(); case ASTView: return llvm::make_unique(); + case DumpCompilerOptions: + return llvm::make_unique(); case DumpRawTokens: return llvm::make_unique(); case DumpTokens: return llvm::make_unique(); case EmitAssembly: return llvm::make_unique(); @@ -63,6 +67,7 @@ CreateFrontendBaseAction(CompilerInstance &CI) { case ParseSyntaxOnly: return llvm::make_unique(); case ModuleFileInfo: return llvm::make_unique(); case VerifyPCH: return llvm::make_unique(); + case TemplightDump: return llvm::make_unique(); case PluginAction: { for (FrontendPluginRegistry::iterator it = @@ -122,7 +127,7 @@ CreateFrontendBaseAction(CompilerInstance &CI) { #endif } -static std::unique_ptr +std::unique_ptr CreateFrontendAction(CompilerInstance &CI) { // Create the underlying action. std::unique_ptr Act = CreateFrontendBaseAction(CI); @@ -173,7 +178,7 @@ CreateFrontendAction(CompilerInstance &CI) { return Act; } -bool clang::ExecuteCompilerInvocation(CompilerInstance *Clang) { +bool ExecuteCompilerInvocation(CompilerInstance *Clang) { // Honor -help. if (Clang->getFrontendOpts().ShowHelp) { std::unique_ptr Opts = driver::createDriverOptTable(); @@ -254,3 +259,5 @@ bool clang::ExecuteCompilerInvocation(CompilerInstance *Clang) { BuryPointer(std::move(Act)); return Success; } + +} // namespace clang -- cgit v1.2.3