aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-16 01:21:25 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-16 01:21:25 +0000
commitdb0ba55c1efc9f6a34e8b5dde3f185b611101266 (patch)
tree756f66a3b26edf9298406fe8976ba903c19f7aba
parent15a306219ce5425c77f0f2afb17870c89e560cae (diff)
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 git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@366164 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--ELF/InputFiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ELF/InputFiles.cpp b/ELF/InputFiles.cpp
index 470d877f3..89b178dec 100644
--- a/ELF/InputFiles.cpp
+++ b/ELF/InputFiles.cpp
@@ -320,7 +320,7 @@ ObjFile<ELFT>::getVariableLoc(StringRef name) {
// 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;