Formatting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194400 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2013-11-11 18:52:36 +00:00
parent 62af0c295a
commit 6129002232

View File

@ -275,7 +275,8 @@ void CompileUnit::addDelta(DIE *Die, dwarf::Attribute Attribute,
/// addDIEEntry - Add a DIE attribute data and value.
///
void CompileUnit::addDIEEntry(DIE *Die, dwarf::Attribute Attribute, DIE *Entry) {
void CompileUnit::addDIEEntry(DIE *Die, dwarf::Attribute Attribute,
DIE *Entry) {
addDIEEntry(Die, Attribute, createDIEEntry(Entry));
}
@ -773,8 +774,7 @@ void CompileUnit::addConstantFPValue(DIE *Die, const MachineOperand &MO) {
// Output the constant to DWARF one byte at a time.
for (; Start != Stop; Start += Incr)
addUInt(Block, dwarf::DW_FORM_data1,
(unsigned char)0xFF & FltPtr[Start]);
addUInt(Block, dwarf::DW_FORM_data1, (unsigned char)0xFF & FltPtr[Start]);
addBlock(Die, dwarf::DW_AT_const_value, Block);
}
@ -1462,8 +1462,8 @@ DIE *CompileUnit::getOrCreateSubprogramDIE(DISubprogram SP) {
addUInt(Block, dwarf::DW_FORM_data1, dwarf::DW_OP_constu);
addUInt(Block, dwarf::DW_FORM_udata, SP.getVirtualIndex());
addBlock(SPDie, dwarf::DW_AT_vtable_elem_location, Block);
ContainingTypeMap.insert(std::make_pair(SPDie,
resolve(SP.getContainingType())));
ContainingTypeMap.insert(
std::make_pair(SPDie, resolve(SP.getContainingType())));
}
if (!SP.isDefinition()) {
@ -1685,7 +1685,8 @@ void CompileUnit::constructSubrangeDIE(DIE &Buffer, DISubrange SR,
if (Count != -1 && Count != 0)
// FIXME: An unbounded array should reference the expression that defines
// the array.
addUInt(DW_Subrange, dwarf::DW_AT_upper_bound, None, LowerBound + Count - 1);
addUInt(DW_Subrange, dwarf::DW_AT_upper_bound, None,
LowerBound + Count - 1);
}
/// constructArrayTypeDIE - Construct array type DIE from DICompositeType.
@ -1832,7 +1833,6 @@ void CompileUnit::constructMemberDIE(DIE &Buffer, DIDerivedType DT) {
DIEBlock *MemLocationDie = new (DIEValueAllocator) DIEBlock();
addUInt(MemLocationDie, dwarf::DW_FORM_data1, dwarf::DW_OP_plus_uconst);
if (DT.getTag() == dwarf::DW_TAG_inheritance && DT.isVirtual()) {
// For C++, virtual base classes are not at fixed offset. Use following
@ -1877,8 +1877,7 @@ void CompileUnit::constructMemberDIE(DIE &Buffer, DIDerivedType DT) {
} else
// This is not a bitfield.
OffsetInBytes = DT.getOffsetInBits() >> 3;
addUInt(MemberDie, dwarf::DW_AT_data_member_location, None,
OffsetInBytes);
addUInt(MemberDie, dwarf::DW_AT_data_member_location, None, OffsetInBytes);
}
if (DT.isProtected())