mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Remove generation of DW_AT_sibling. Nothing as far as I can tell uses it.
Saves about 1.5% on debug info size. rdar://10278198 llvm-svn: 148794
This commit is contained in:
parent
55e4ae9dcd
commit
afc99847bf
@ -112,15 +112,6 @@ DIE::~DIE() {
|
||||
delete Children[i];
|
||||
}
|
||||
|
||||
/// addSiblingOffset - Add a sibling offset field to the front of the DIE.
|
||||
///
|
||||
DIEValue *DIE::addSiblingOffset(BumpPtrAllocator &A) {
|
||||
DIEInteger *DI = new (A) DIEInteger(0);
|
||||
Values.insert(Values.begin(), DI);
|
||||
Abbrev.AddFirstAttribute(dwarf::DW_AT_sibling, dwarf::DW_FORM_ref4);
|
||||
return DI;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
void DIE::print(raw_ostream &O, unsigned IncIndent) {
|
||||
IndentCount += IncIndent;
|
||||
|
@ -163,16 +163,6 @@ namespace llvm {
|
||||
Values.push_back(Value);
|
||||
}
|
||||
|
||||
/// SiblingOffset - Return the offset of the debug information entry's
|
||||
/// sibling.
|
||||
unsigned getSiblingOffset() const { return Offset + Size; }
|
||||
|
||||
/// addSiblingOffset - Add a sibling offset field to the front of the DIE.
|
||||
/// The caller is responsible for deleting the return value at or after the
|
||||
/// same time it destroys this DIE.
|
||||
///
|
||||
DIEValue *addSiblingOffset(BumpPtrAllocator &A);
|
||||
|
||||
/// addChild - Add a child to the DIE.
|
||||
///
|
||||
void addChild(DIE *Child) {
|
||||
|
@ -1488,10 +1488,6 @@ DwarfDebug::computeSizeAndOffset(DIE *Die, unsigned Offset, bool Last) {
|
||||
// Get the children.
|
||||
const std::vector<DIE *> &Children = Die->getChildren();
|
||||
|
||||
// If not last sibling and has children then add sibling offset attribute.
|
||||
if (!Last && !Children.empty())
|
||||
Die->addSiblingOffset(DIEValueAllocator);
|
||||
|
||||
// Record the abbreviation.
|
||||
assignAbbrevNumber(Die->getAbbrev());
|
||||
|
||||
@ -1602,9 +1598,6 @@ void DwarfDebug::emitDIE(DIE *Die) {
|
||||
Asm->OutStreamer.AddComment(dwarf::AttributeString(Attr));
|
||||
|
||||
switch (Attr) {
|
||||
case dwarf::DW_AT_sibling:
|
||||
Asm->EmitInt32(Die->getSiblingOffset());
|
||||
break;
|
||||
case dwarf::DW_AT_abstract_origin: {
|
||||
DIEEntry *E = cast<DIEEntry>(Values[i]);
|
||||
DIE *Origin = E->getEntry();
|
||||
|
Loading…
Reference in New Issue
Block a user