mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-05 12:31:46 +00:00
DebugInfo: Add comment describing the need to disable address pool usage in skeleton units.
Post commit review from Eric Christopher. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217842 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
61c9638f41
commit
1bdc6c4519
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user