From b773203fb58f3ef282fb69c832d8710cab5bc82d Mon Sep 17 00:00:00 2001 From: patrick Date: Sun, 27 Jan 2019 16:42:12 +0000 Subject: Import LLVM 7.0.1 release including clang, lld and lldb. --- .../clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gnu/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp') diff --git a/gnu/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/gnu/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp index 4167e1fe20b..747fdd24164 100644 --- a/gnu/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/gnu/llvm/tools/clang/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); @@ -134,7 +139,7 @@ CreateFrontendAction(CompilerInstance &CI) { if (FEOpts.FixAndRecompile) { Act = llvm::make_unique(std::move(Act)); } - + #if CLANG_ENABLE_ARCMT if (CI.getFrontendOpts().ProgramAction != frontend::MigrateSource && CI.getFrontendOpts().ProgramAction != frontend::GeneratePCH) { @@ -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-59-g8ed1b