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 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);
}

View File

@ -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;
}

View File

@ -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);

View File

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