Formatting and 80-col.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195122 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher
2013-11-19 09:28:34 +00:00
parent 5efc006438
commit 4d06b6d28f
4 changed files with 21 additions and 15 deletions

View File

@ -102,8 +102,7 @@ int64_t CompileUnit::getDefaultLowerBound() const {
static bool isShareableAcrossCUs(DIDescriptor D) {
// When the MDNode can be part of the type system, the DIE can be
// shared across CUs.
return D.isType() ||
(D.isSubprogram() && !DISubprogram(D).isDefinition());
return D.isType() || (D.isSubprogram() && !DISubprogram(D).isDefinition());
}
/// getDIE - Returns the debug information entry map slot for the
@ -1712,7 +1711,8 @@ void CompileUnit::constructEnumTypeDIE(DIE &Buffer, DICompositeType CTy) {
StringRef Name = Enum.getName();
addString(Enumerator, dwarf::DW_AT_name, Name);
int64_t Value = Enum.getEnumValue();
addSInt(Enumerator, dwarf::DW_AT_const_value, dwarf::DW_FORM_sdata, Value);
addSInt(Enumerator, dwarf::DW_AT_const_value, dwarf::DW_FORM_sdata,
Value);
}
}
DIType DTy = resolve(CTy.getTypeDerivedFrom());