diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-02 00:31:14 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-02 00:31:14 +0000 |
commit | 0ff993839c4c0ed7da73f240315eb848af647795 (patch) | |
tree | 1803e90774c15f6ebf4ef4c7479ea0112b4ab734 /llvm/tools/lto/LTOCodeGenerator.cpp | |
parent | 6bab414f87104d9ddcfd91d8b193816abed39a3a (diff) | |
download | bcm5719-llvm-0ff993839c4c0ed7da73f240315eb848af647795.tar.gz bcm5719-llvm-0ff993839c4c0ed7da73f240315eb848af647795.zip |
Maintain the old LTO API, by using the global context.
llvm-svn: 74678
Diffstat (limited to 'llvm/tools/lto/LTOCodeGenerator.cpp')
-rw-r--r-- | llvm/tools/lto/LTOCodeGenerator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/tools/lto/LTOCodeGenerator.cpp b/llvm/tools/lto/LTOCodeGenerator.cpp index 6f5e6bc7713..1a21132ef2f 100644 --- a/llvm/tools/lto/LTOCodeGenerator.cpp +++ b/llvm/tools/lto/LTOCodeGenerator.cpp @@ -19,6 +19,7 @@ #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" #include "llvm/Linker.h" +#include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/ModuleProvider.h" #include "llvm/PassManager.h" @@ -69,8 +70,8 @@ const char* LTOCodeGenerator::getVersionString() } -LTOCodeGenerator::LTOCodeGenerator(LLVMContext& Context) - : _context(Context), +LTOCodeGenerator::LTOCodeGenerator() + : _context(getGlobalContext()), _linker("LinkTimeOptimizer", "ld-temp.o", _context), _target(NULL), _emitDwarfDebugInfo(false), _scopeRestrictionsDone(false), _codeModel(LTO_CODEGEN_PIC_MODEL_DYNAMIC), |