forked from OSchip/llvm-project
Remove special case in the DIEValue printing since it only existed
for verbose asm. llvm-svn: 203031
This commit is contained in:
parent
b509a414f0
commit
13a1bb3720
|
@ -1996,8 +1996,12 @@ void DwarfDebug::emitDIE(DIE *Die) {
|
|||
dwarf::Form Form = AbbrevData[i].getForm();
|
||||
assert(Form && "Too many attributes for DIE (check abbreviation)");
|
||||
|
||||
if (Asm->isVerbose())
|
||||
if (Asm->isVerbose()) {
|
||||
Asm->OutStreamer.AddComment(dwarf::AttributeString(Attr));
|
||||
if (Attr == dwarf::DW_AT_accessibility)
|
||||
Asm->OutStreamer.AddComment(dwarf::AccessibilityString(
|
||||
cast<DIEInteger>(Values[i])->getValue()));
|
||||
}
|
||||
|
||||
switch (Attr) {
|
||||
case dwarf::DW_AT_abstract_origin:
|
||||
|
@ -2032,14 +2036,6 @@ void DwarfDebug::emitDIE(DIE *Die) {
|
|||
}
|
||||
break;
|
||||
}
|
||||
case dwarf::DW_AT_accessibility: {
|
||||
if (Asm->isVerbose()) {
|
||||
DIEInteger *V = cast<DIEInteger>(Values[i]);
|
||||
Asm->OutStreamer.AddComment(dwarf::AccessibilityString(V->getValue()));
|
||||
}
|
||||
Values[i]->EmitValue(Asm, Form);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
// Emit an attribute using the defined form.
|
||||
Values[i]->EmitValue(Asm, Form);
|
||||
|
|
Loading…
Reference in New Issue