[llvm] r201197 - Fix some formatting in my last commit (r201196)
David Blaikie
dblaikie at gmail.com
Tue Feb 11 16:32:06 PST 2014
Author: dblaikie
Date: Tue Feb 11 18:32:05 2014
New Revision: 201197
URL: http://llvm.org/viewvc/llvm-project?rev=201197&view=rev
Log:
Fix some formatting in my last commit (r201196)
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=201197&r1=201196&r2=201197&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue Feb 11 18:32:05 2014
@@ -2968,8 +2968,8 @@ DwarfCompileUnit *DwarfDebug::constructS
DwarfTypeUnit *DwarfDebug::constructSkeletonTU(DwarfTypeUnit *TU) {
DIE *Die = new DIE(dwarf::DW_TAG_type_unit);
- DwarfTypeUnit *NewTU = new DwarfTypeUnit(
- TU->getUniqueID(), Die, TU->getCU(), Asm, this, &SkeletonHolder);
+ DwarfTypeUnit *NewTU = new DwarfTypeUnit(TU->getUniqueID(), Die, TU->getCU(),
+ Asm, this, &SkeletonHolder);
NewTU->setTypeSignature(TU->getTypeSignature());
NewTU->setType(NULL);
NewTU->initSection(
@@ -3023,8 +3023,8 @@ void DwarfDebug::addDwarfTypeUnitType(Dw
}
DIE *UnitDie = new DIE(dwarf::DW_TAG_type_unit);
- DwarfTypeUnit *NewTU = new DwarfTypeUnit(
- InfoHolder.getUnits().size(), UnitDie, CU, Asm, this, &InfoHolder);
+ DwarfTypeUnit *NewTU = new DwarfTypeUnit(InfoHolder.getUnits().size(),
+ UnitDie, CU, Asm, this, &InfoHolder);
TU = NewTU;
InfoHolder.addUnit(NewTU);
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h?rev=201197&r1=201196&r2=201197&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h Tue Feb 11 18:32:05 2014
@@ -464,6 +464,7 @@ public:
const MCSymbol *ASectionSym) const;
virtual DwarfCompileUnit &getCU() = 0;
+
protected:
/// getOrCreateStaticMemberDIE - Create new static data member DIE.
DIE *getOrCreateStaticMemberDIE(DIDerivedType DT);
@@ -550,9 +551,7 @@ public:
/// either DW_FORM_addr or DW_FORM_GNU_addr_index.
void addLabelAddress(DIE *Die, dwarf::Attribute Attribute, MCSymbol *Label);
- DwarfCompileUnit &getCU() LLVM_OVERRIDE {
- return *this;
- }
+ DwarfCompileUnit &getCU() LLVM_OVERRIDE { return *this; }
};
class DwarfTypeUnit : public DwarfUnit {
@@ -578,9 +577,7 @@ public:
sizeof(uint32_t); // Type DIE Offset
}
void initSection(const MCSection *Section);
- DwarfCompileUnit &getCU() LLVM_OVERRIDE {
- return CU;
- }
+ DwarfCompileUnit &getCU() LLVM_OVERRIDE { return CU; }
};
} // end llvm namespace
#endif
More information about the llvm-commits
mailing list