diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-01 17:00:06 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-01 17:00:06 +0000 |
commit | d9dd77ff6ccb8f90dcc5ec30139bab47b9355ea3 (patch) | |
tree | 638484a219c6619ea1665615ca8fbca6b36bb430 /clang/lib/Frontend/Backend.cpp | |
parent | 6773d388aadf0c8588e3cda343ab621397fde38c (diff) | |
download | bcm5719-llvm-d9dd77ff6ccb8f90dcc5ec30139bab47b9355ea3.tar.gz bcm5719-llvm-d9dd77ff6ccb8f90dcc5ec30139bab47b9355ea3.zip |
Update for LLVMContext+Module change.
llvm-svn: 74615
Diffstat (limited to 'clang/lib/Frontend/Backend.cpp')
-rw-r--r-- | clang/lib/Frontend/Backend.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/clang/lib/Frontend/Backend.cpp b/clang/lib/Frontend/Backend.cpp index d8f8625d674..dc84cd82713 100644 --- a/clang/lib/Frontend/Backend.cpp +++ b/clang/lib/Frontend/Backend.cpp @@ -75,13 +75,14 @@ namespace { public: BackendConsumer(BackendAction action, Diagnostic &Diags, const LangOptions &langopts, const CompileOptions &compopts, - const std::string &infile, llvm::raw_ostream* OS) : + const std::string &infile, llvm::raw_ostream* OS, + LLVMContext* C) : Action(action), CompileOpts(compopts), AsmOutStream(OS), LLVMIRGeneration("LLVM IR Generation Time"), CodeGenerationTime("Code Generation Time"), - Gen(CreateLLVMCodeGen(Diags, infile, compopts)), + Gen(CreateLLVMCodeGen(Diags, infile, compopts, C)), TheModule(0), TheTargetData(0), ModuleProvider(0), CodeGenPasses(0), PerModulePasses(0), PerFunctionPasses(0) { @@ -359,6 +360,8 @@ ASTConsumer *clang::CreateBackendConsumer(BackendAction Action, const LangOptions &LangOpts, const CompileOptions &CompileOpts, const std::string& InFile, - llvm::raw_ostream* OS) { - return new BackendConsumer(Action, Diags, LangOpts, CompileOpts, InFile, OS); + llvm::raw_ostream* OS, + LLVMContext* C) { + return new BackendConsumer(Action, Diags, LangOpts, CompileOpts, + InFile, OS, C); } |