forked from OSchip/llvm-project
Fix some formatting in my last commit (r201196)
llvm-svn: 201197
This commit is contained in:
parent
15632ae11a
commit
d696fac175
|
@ -2968,8 +2968,8 @@ DwarfCompileUnit *DwarfDebug::constructSkeletonCU(const DwarfCompileUnit *CU) {
|
||||||
DwarfTypeUnit *DwarfDebug::constructSkeletonTU(DwarfTypeUnit *TU) {
|
DwarfTypeUnit *DwarfDebug::constructSkeletonTU(DwarfTypeUnit *TU) {
|
||||||
|
|
||||||
DIE *Die = new DIE(dwarf::DW_TAG_type_unit);
|
DIE *Die = new DIE(dwarf::DW_TAG_type_unit);
|
||||||
DwarfTypeUnit *NewTU = new DwarfTypeUnit(
|
DwarfTypeUnit *NewTU = new DwarfTypeUnit(TU->getUniqueID(), Die, TU->getCU(),
|
||||||
TU->getUniqueID(), Die, TU->getCU(), Asm, this, &SkeletonHolder);
|
Asm, this, &SkeletonHolder);
|
||||||
NewTU->setTypeSignature(TU->getTypeSignature());
|
NewTU->setTypeSignature(TU->getTypeSignature());
|
||||||
NewTU->setType(NULL);
|
NewTU->setType(NULL);
|
||||||
NewTU->initSection(
|
NewTU->initSection(
|
||||||
|
@ -3023,8 +3023,8 @@ void DwarfDebug::addDwarfTypeUnitType(DwarfCompileUnit &CU,
|
||||||
}
|
}
|
||||||
|
|
||||||
DIE *UnitDie = new DIE(dwarf::DW_TAG_type_unit);
|
DIE *UnitDie = new DIE(dwarf::DW_TAG_type_unit);
|
||||||
DwarfTypeUnit *NewTU = new DwarfTypeUnit(
|
DwarfTypeUnit *NewTU = new DwarfTypeUnit(InfoHolder.getUnits().size(),
|
||||||
InfoHolder.getUnits().size(), UnitDie, CU, Asm, this, &InfoHolder);
|
UnitDie, CU, Asm, this, &InfoHolder);
|
||||||
TU = NewTU;
|
TU = NewTU;
|
||||||
InfoHolder.addUnit(NewTU);
|
InfoHolder.addUnit(NewTU);
|
||||||
|
|
||||||
|
|
|
@ -464,6 +464,7 @@ public:
|
||||||
const MCSymbol *ASectionSym) const;
|
const MCSymbol *ASectionSym) const;
|
||||||
|
|
||||||
virtual DwarfCompileUnit &getCU() = 0;
|
virtual DwarfCompileUnit &getCU() = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// getOrCreateStaticMemberDIE - Create new static data member DIE.
|
/// getOrCreateStaticMemberDIE - Create new static data member DIE.
|
||||||
DIE *getOrCreateStaticMemberDIE(DIDerivedType DT);
|
DIE *getOrCreateStaticMemberDIE(DIDerivedType DT);
|
||||||
|
@ -550,9 +551,7 @@ public:
|
||||||
/// either DW_FORM_addr or DW_FORM_GNU_addr_index.
|
/// either DW_FORM_addr or DW_FORM_GNU_addr_index.
|
||||||
void addLabelAddress(DIE *Die, dwarf::Attribute Attribute, MCSymbol *Label);
|
void addLabelAddress(DIE *Die, dwarf::Attribute Attribute, MCSymbol *Label);
|
||||||
|
|
||||||
DwarfCompileUnit &getCU() LLVM_OVERRIDE {
|
DwarfCompileUnit &getCU() LLVM_OVERRIDE { return *this; }
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class DwarfTypeUnit : public DwarfUnit {
|
class DwarfTypeUnit : public DwarfUnit {
|
||||||
|
@ -578,9 +577,7 @@ public:
|
||||||
sizeof(uint32_t); // Type DIE Offset
|
sizeof(uint32_t); // Type DIE Offset
|
||||||
}
|
}
|
||||||
void initSection(const MCSection *Section);
|
void initSection(const MCSection *Section);
|
||||||
DwarfCompileUnit &getCU() LLVM_OVERRIDE {
|
DwarfCompileUnit &getCU() LLVM_OVERRIDE { return CU; }
|
||||||
return CU;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
} // end llvm namespace
|
} // end llvm namespace
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue