From 8afb37e1a1c23e28c0964c63dde909ce29524593 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 15 Jan 2015 06:00:15 +0000 Subject: [PATCH] Remove unused parameter, followup to r179639. No behavior change. llvm-svn: 226128 --- clang/include/clang/CodeGen/ModuleBuilder.h | 2 -- clang/lib/CodeGen/CodeGenAction.cpp | 3 +-- clang/lib/CodeGen/ModuleBuilder.cpp | 1 - clang/unittests/CodeGen/BufferSourceTest.cpp | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/clang/include/clang/CodeGen/ModuleBuilder.h b/clang/include/clang/CodeGen/ModuleBuilder.h index f4c31074e9cd..8facc3c8307b 100644 --- a/clang/include/clang/CodeGen/ModuleBuilder.h +++ b/clang/include/clang/CodeGen/ModuleBuilder.h @@ -27,7 +27,6 @@ namespace clang { class CoverageSourceInfo; class LangOptions; class CodeGenOptions; - class TargetOptions; class Decl; class CodeGenerator : public ASTConsumer { @@ -44,7 +43,6 @@ namespace clang { CodeGenerator *CreateLLVMCodeGen(DiagnosticsEngine &Diags, const std::string &ModuleName, const CodeGenOptions &CGO, - const TargetOptions &TO, llvm::LLVMContext& C, CoverageSourceInfo *CoverageInfo = nullptr); } diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index c459a210cee2..23991e7d3ec1 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -66,8 +66,7 @@ namespace clang { : Diags(_Diags), Action(action), CodeGenOpts(compopts), TargetOpts(targetopts), LangOpts(langopts), AsmOutStream(OS), Context(nullptr), LLVMIRGeneration("LLVM IR Generation Time"), - Gen(CreateLLVMCodeGen(Diags, infile, compopts, - targetopts, C, CoverageInfo)), + Gen(CreateLLVMCodeGen(Diags, infile, compopts, C, CoverageInfo)), LinkModule(LinkModule) { llvm::TimePassesIsEnabled = TimePasses; } diff --git a/clang/lib/CodeGen/ModuleBuilder.cpp b/clang/lib/CodeGen/ModuleBuilder.cpp index f85de0d07fa6..d774aba66e40 100644 --- a/clang/lib/CodeGen/ModuleBuilder.cpp +++ b/clang/lib/CodeGen/ModuleBuilder.cpp @@ -238,7 +238,6 @@ void CodeGenerator::anchor() { } CodeGenerator *clang::CreateLLVMCodeGen(DiagnosticsEngine &Diags, const std::string& ModuleName, const CodeGenOptions &CGO, - const TargetOptions &/*TO*/, llvm::LLVMContext& C, CoverageSourceInfo *CoverageInfo) { return new CodeGeneratorImpl(Diags, ModuleName, CGO, C, CoverageInfo); diff --git a/clang/unittests/CodeGen/BufferSourceTest.cpp b/clang/unittests/CodeGen/BufferSourceTest.cpp index 8169a6d0c9e5..b2a8ba580844 100644 --- a/clang/unittests/CodeGen/BufferSourceTest.cpp +++ b/clang/unittests/CodeGen/BufferSourceTest.cpp @@ -63,7 +63,6 @@ TEST(BufferSourceTest, EmitCXXGlobalInitFunc) { compiler.getDiagnostics(), "EmitCXXGlobalInitFuncTest", compiler.getCodeGenOpts(), - compiler.getTargetOpts(), llvm::getGlobalContext()))); compiler.createSema(clang::TU_Prefix,NULL);