[lld] r329609 - COFF: Remove dead code. NFCI.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 12:46:00 PDT 2018


Author: pcc
Date: Mon Apr  9 12:46:00 2018
New Revision: 329609

URL: http://llvm.org/viewvc/llvm-project?rev=329609&view=rev
Log:
COFF: Remove dead code. NFCI.

Differential Revision: https://reviews.llvm.org/D45423

Modified:
    lld/trunk/COFF/PDB.cpp

Modified: lld/trunk/COFF/PDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/PDB.cpp?rev=329609&r1=329608&r2=329609&view=diff
==============================================================================
--- lld/trunk/COFF/PDB.cpp (original)
+++ lld/trunk/COFF/PDB.cpp Mon Apr  9 12:46:00 2018
@@ -832,9 +832,6 @@ void PDBLinker::addObjFile(ObjFile *File
     for (const DebugSubsectionRecord &SS : Subsections) {
       switch (SS.kind()) {
       case DebugSubsectionKind::StringTable: {
-        auto Data = SS.getRecordData();
-        ArrayRef<uint8_t> Buffer;
-        cantFail(Data.readLongestContiguousChunk(0, Buffer));
         assert(!CVStrTab.valid() &&
                "Encountered multiple string table subsections!");
         ExitOnErr(CVStrTab.initialize(SS.getRecordData()));




More information about the llvm-commits mailing list