[lld] r317607 - [DWARFv5] Support DW_FORM_strp in the .debug_line header.

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 11:57:12 PST 2017


Author: probinson
Date: Tue Nov  7 11:57:12 2017
New Revision: 317607

URL: http://llvm.org/viewvc/llvm-project?rev=317607&view=rev
Log:
[DWARFv5] Support DW_FORM_strp in the .debug_line header.

Supporting this form in .debug_line.dwo will be done as a follow-up.

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

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=317607&r1=317606&r2=317607&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Tue Nov  7 11:57:12 2017
@@ -77,8 +77,10 @@ template <class ELFT> void ObjFile<ELFT>
   // The second parameter is offset in .debug_line section
   // for compilation unit (CU) of interest. We have only one
   // CU (object file), so offset is always 0.
+  // FIXME: Provide the associated DWARFUnit if there is one.  DWARF v5
+  // needs it in order to find indirect strings.
   const DWARFDebugLine::LineTable *LT =
-      DwarfLine->getOrParseLineTable(LineData, 0);
+      DwarfLine->getOrParseLineTable(LineData, 0, nullptr);
 
   // Return if there is no debug information about CU available.
   if (!Dwarf.getNumCompileUnits())




More information about the llvm-commits mailing list