[llvm-commits] [PATCH] Dwarf: support for LTO where a single object file can have multiple line tables

Manman Ren mren at apple.com
Fri Jan 25 16:05:50 PST 2013


Hello,

With LTO, we will generate a single object file with multiple compilation units, and we used to generate a single combined line table
and all compilation units will point to the same line table.

With this patch, we will generate one line table for each compilation unit in the object file.

Added the following members in MCContext:
+    /// The Compile Unit ID that we are currently processing.
+    int DwarfCompileUnitID;
+    /// The line table start symbol for each Compile Unit.
+    DenseMap<int, MCSymbol *> MCLineTableSymbols;
Modified members in MCLineSection:
-    MCLineEntryCollection MCLineEntries;
+    // A collection of MCLineEntry for each Compile Unit ID.
+    DenseMap<int, MCLineEntryCollection> MCLineDivisions;

Please review,

Thanks,
Manman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: line_table.patch
Type: application/octet-stream
Size: 10508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130125/37e024cc/attachment.obj>


More information about the llvm-commits mailing list