DebugInfo: Add comment describing the need to disable address pool usage in skeleton...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 15 Sep 2014 22:41:25 +0000 (22:41 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 15 Sep 2014 22:41:25 +0000 (22:41 +0000)
Post commit review from Eric Christopher.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217842 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfUnit.cpp

index 4206ffd5535eb14bf6a4217f9b8e30c21594561d..4cd32f8668e126eb39d792f4021b90c7d9553cac 100644 (file)
@@ -286,6 +286,11 @@ void DwarfUnit::addSectionOffset(DIE &Die, dwarf::Attribute Attribute,
 void DwarfCompileUnit::addLabelAddress(DIE &Die, dwarf::Attribute Attribute,
                                        const MCSymbol *Label) {
 
+  // Don't use the address pool in non-fission or in the skeleton unit itself.
+  // FIXME: Once GDB supports this, it's probably worthwhile using the address
+  // pool from the skeleton - maybe even in non-fission (possibly fewer
+  // relocations by sharing them in the pool, but we have other ideas about how
+  // to reduce the number of relocations as well/instead).
   if (!DD->useSplitDwarf() || !Skeleton)
     return addLocalLabelAddress(Die, Attribute, Label);