[lld] 2923953 - [lld-link] Remove unneeded lto::InputFile::create after D116434

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 4 19:38:38 PST 2022


Author: Fangrui Song
Date: 2022-01-04T19:38:32-08:00
New Revision: 292395329c68e82d72f4770296cdf2bcd9d01a80

URL: https://github.com/llvm/llvm-project/commit/292395329c68e82d72f4770296cdf2bcd9d01a80
DIFF: https://github.com/llvm/llvm-project/commit/292395329c68e82d72f4770296cdf2bcd9d01a80.diff

LOG: [lld-link] Remove unneeded lto::InputFile::create after D116434

Added: 
    

Modified: 
    lld/COFF/InputFiles.cpp

Removed: 
    


################################################################################
diff  --git a/lld/COFF/InputFiles.cpp b/lld/COFF/InputFiles.cpp
index 06eec40d3a22..1d79d97acad2 100644
--- a/lld/COFF/InputFiles.cpp
+++ b/lld/COFF/InputFiles.cpp
@@ -1080,7 +1080,6 @@ void BitcodeFile::parse() {
 }
 
 void BitcodeFile::parseLazy() {
-  std::unique_ptr<lto::InputFile> obj = CHECK(lto::InputFile::create(mb), this);
   for (const lto::InputFile::Symbol &sym : obj->symbols())
     if (!sym.isUndefined())
       ctx.symtab.addLazyObject(this, sym.getName());


        


More information about the llvm-commits mailing list