[PATCH] D45423: COFF: Remove dead code. NFCI.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 12:49:03 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL329609: COFF: Remove dead code. NFCI. (authored by pcc, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D45423?vs=141587&id=141720#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D45423

Files:
  lld/trunk/COFF/PDB.cpp


Index: lld/trunk/COFF/PDB.cpp
===================================================================
--- lld/trunk/COFF/PDB.cpp
+++ lld/trunk/COFF/PDB.cpp
@@ -832,9 +832,6 @@
     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()));


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45423.141720.patch
Type: text/x-patch
Size: 611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180409/935d9b74/attachment.bin>


More information about the llvm-commits mailing list