[lld] r254697 - Update for LLVM api change.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 18:42:47 PST 2015


Author: rafael
Date: Thu Dec  3 20:42:47 2015
New Revision: 254697

URL: http://llvm.org/viewvc/llvm-project?rev=254697&view=rev
Log:
Update for LLVM api change.

Modified:
    lld/trunk/COFF/SymbolTable.cpp

Modified: lld/trunk/COFF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/SymbolTable.cpp?rev=254697&r1=254696&r2=254697&view=diff
==============================================================================
--- lld/trunk/COFF/SymbolTable.cpp (original)
+++ lld/trunk/COFF/SymbolTable.cpp Thu Dec  3 20:42:47 2015
@@ -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);
 




More information about the llvm-commits mailing list