Remove unused parameter, followup to r179639. No behavior change.

llvm-svn: 226128
This commit is contained in:
Nico Weber 2015-01-15 06:00:15 +00:00
parent 2b5a4fbc30
commit 8afb37e1a1
4 changed files with 1 additions and 6 deletions

View File

@ -27,7 +27,6 @@ namespace clang {
class CoverageSourceInfo; class CoverageSourceInfo;
class LangOptions; class LangOptions;
class CodeGenOptions; class CodeGenOptions;
class TargetOptions;
class Decl; class Decl;
class CodeGenerator : public ASTConsumer { class CodeGenerator : public ASTConsumer {
@ -44,7 +43,6 @@ namespace clang {
CodeGenerator *CreateLLVMCodeGen(DiagnosticsEngine &Diags, CodeGenerator *CreateLLVMCodeGen(DiagnosticsEngine &Diags,
const std::string &ModuleName, const std::string &ModuleName,
const CodeGenOptions &CGO, const CodeGenOptions &CGO,
const TargetOptions &TO,
llvm::LLVMContext& C, llvm::LLVMContext& C,
CoverageSourceInfo *CoverageInfo = nullptr); CoverageSourceInfo *CoverageInfo = nullptr);
} }

View File

@ -66,8 +66,7 @@ namespace clang {
: Diags(_Diags), Action(action), CodeGenOpts(compopts), : Diags(_Diags), Action(action), CodeGenOpts(compopts),
TargetOpts(targetopts), LangOpts(langopts), AsmOutStream(OS), TargetOpts(targetopts), LangOpts(langopts), AsmOutStream(OS),
Context(nullptr), LLVMIRGeneration("LLVM IR Generation Time"), Context(nullptr), LLVMIRGeneration("LLVM IR Generation Time"),
Gen(CreateLLVMCodeGen(Diags, infile, compopts, Gen(CreateLLVMCodeGen(Diags, infile, compopts, C, CoverageInfo)),
targetopts, C, CoverageInfo)),
LinkModule(LinkModule) { LinkModule(LinkModule) {
llvm::TimePassesIsEnabled = TimePasses; llvm::TimePassesIsEnabled = TimePasses;
} }

View File

@ -238,7 +238,6 @@ void CodeGenerator::anchor() { }
CodeGenerator *clang::CreateLLVMCodeGen(DiagnosticsEngine &Diags, CodeGenerator *clang::CreateLLVMCodeGen(DiagnosticsEngine &Diags,
const std::string& ModuleName, const std::string& ModuleName,
const CodeGenOptions &CGO, const CodeGenOptions &CGO,
const TargetOptions &/*TO*/,
llvm::LLVMContext& C, llvm::LLVMContext& C,
CoverageSourceInfo *CoverageInfo) { CoverageSourceInfo *CoverageInfo) {
return new CodeGeneratorImpl(Diags, ModuleName, CGO, C, CoverageInfo); return new CodeGeneratorImpl(Diags, ModuleName, CGO, C, CoverageInfo);

View File

@ -63,7 +63,6 @@ TEST(BufferSourceTest, EmitCXXGlobalInitFunc) {
compiler.getDiagnostics(), compiler.getDiagnostics(),
"EmitCXXGlobalInitFuncTest", "EmitCXXGlobalInitFuncTest",
compiler.getCodeGenOpts(), compiler.getCodeGenOpts(),
compiler.getTargetOpts(),
llvm::getGlobalContext()))); llvm::getGlobalContext())));
compiler.createSema(clang::TU_Prefix,NULL); compiler.createSema(clang::TU_Prefix,NULL);