diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-04 02:42:47 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-04 02:42:47 +0000 |
commit | 35dad13714ee43a5fd15ee44af21c6813a496f62 (patch) | |
tree | 7c420cfcb91009df9d95811b43263dec7304ebca | |
parent | 7b8a24e5bb0cd0e87c63016dba7a397ea7db2572 (diff) | |
download | bcm5719-llvm-35dad13714ee43a5fd15ee44af21c6813a496f62.tar.gz bcm5719-llvm-35dad13714ee43a5fd15ee44af21c6813a496f62.zip |
Update for LLVM api change.
llvm-svn: 254697
-rw-r--r-- | lld/COFF/SymbolTable.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp index 802d354d5d9..5b7b89cd360 100644 --- a/lld/COFF/SymbolTable.cpp +++ b/lld/COFF/SymbolTable.cpp @@ -13,6 +13,7 @@ #include "SymbolTable.h" #include "Symbols.h" #include "lld/Core/Parallel.h" +#include "llvm/IR/LLVMContext.h" #include "llvm/LTO/LTOCodeGenerator.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" @@ -368,7 +369,7 @@ void SymbolTable::addCombinedLTOObjects() { // Create an object file and add it to the symbol table by replacing any // DefinedBitcode symbols with the definitions in the object file. - LTOCodeGenerator CG; + LTOCodeGenerator CG(getGlobalContext()); CG.setOptLevel(Config->LTOOptLevel); std::vector<ObjectFile *> Objs = createLTOObjects(&CG); |