[lld] r366164 - Re-land "[DebugInfo] Move function from line table to the prologue (NFC)"

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 18:21:25 PDT 2019


Author: jdevlieghere
Date: Mon Jul 15 18:21:25 2019
New Revision: 366164

URL: http://llvm.org/viewvc/llvm-project?rev=366164&view=rev
Log:
Re-land "[DebugInfo] Move function from line table to the prologue (NFC)"

In LLDB, when parsing type units, we don't need to parse the whole line
table. Instead, we only need to parse the "support files" from the line
table prologue.

To make that possible, this patch moves the respective functions from
the LineTable into the Prologue. Because I don't think users of the
LineTable should have to know that these files come from the Prologue,

I've left the original methods in place, and made them redirect to the
LineTable.

Differential revision: https://reviews.llvm.org/D64774

Modified:
    lld/trunk/ELF/InputFiles.cpp

Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=366164&r1=366163&r2=366164&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Mon Jul 15 18:21:25 2019
@@ -320,7 +320,7 @@ ObjFile<ELFT>::getVariableLoc(StringRef
   // Take file name string from line table.
   std::string fileName;
   if (!it->second.lt->getFileNameByIndex(
-          it->second.file, nullptr,
+          it->second.file, {},
           DILineInfoSpecifier::FileLineInfoKind::AbsoluteFilePath, fileName))
     return None;
 




More information about the llvm-commits mailing list