[lld] r266714 - LTO: Adapt to LLVM API changes in r266713

Duncan P. N. Exon Smith via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 21:57:40 PDT 2016


Author: dexonsmith
Date: Mon Apr 18 23:57:40 2016
New Revision: 266714

URL: http://llvm.org/viewvc/llvm-project?rev=266714&view=rev
Log:
LTO: Adapt to LLVM API changes in r266713

Modified:
    lld/trunk/COFF/InputFiles.cpp
    lld/trunk/ELF/LTO.h

Modified: lld/trunk/COFF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/InputFiles.cpp?rev=266714&r1=266713&r2=266714&view=diff
==============================================================================
--- lld/trunk/COFF/InputFiles.cpp (original)
+++ lld/trunk/COFF/InputFiles.cpp Mon Apr 18 23:57:40 2016
@@ -321,7 +321,7 @@ void BitcodeFile::parse() {
   // Usually parse() is thread-safe, but bitcode file is an exception.
   std::lock_guard<std::mutex> Lock(Mu);
 
-  Context.ensureDITypeMap();
+  Context.enableDebugTypeODRUniquing();
   ErrorOr<std::unique_ptr<LTOModule>> ModOrErr = LTOModule::createFromBuffer(
       Context, MB.getBufferStart(), MB.getBufferSize(), llvm::TargetOptions());
   error(ModOrErr, "Could not create lto module");

Modified: lld/trunk/ELF/LTO.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LTO.h?rev=266714&r1=266713&r2=266714&view=diff
==============================================================================
--- lld/trunk/ELF/LTO.h (original)
+++ lld/trunk/ELF/LTO.h Mon Apr 18 23:57:40 2016
@@ -41,7 +41,7 @@ public:
 
   BitcodeCompiler()
       : Combined(new llvm::Module("ld-temp.o", Context)), Mover(*Combined) {
-    Context.ensureDITypeMap();
+    Context.enableDebugTypeODRUniquing();
   }
 
 private:




More information about the llvm-commits mailing list