diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-12-04 21:51:05 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-12-04 21:51:05 +0000 |
commit | 155f88118b462d276d1c54dbff603eaf380a73c0 (patch) | |
tree | e9c2edf8448edfd70942a292af0494e821a27f17 | |
parent | 3001339783e6c11a91a25f51cccbab359709526d (diff) | |
download | bcm5719-llvm-155f88118b462d276d1c54dbff603eaf380a73c0.tar.gz bcm5719-llvm-155f88118b462d276d1c54dbff603eaf380a73c0.zip |
DwarfDebug: Unconditionalize trivial asm comments
While we still have a few (~4) non-trivial comments with string
concatenation, etc that should remain conditionalized, these trivial
literal comments can be simplified.
llvm-svn: 196416
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 3d53d3da9c1..98cb0fb9073 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2128,8 +2128,7 @@ void DwarfDebug::emitDIE(DIE *Die, ArrayRef<DIEAbbrev *> Abbrevs) { for (unsigned j = 0, M = Children.size(); j < M; ++j) emitDIE(Children[j], Abbrevs); - if (Asm->isVerbose()) - Asm->OutStreamer.AddComment("End Of Children Mark"); + Asm->OutStreamer.AddComment("End Of Children Mark"); Asm->EmitInt8(0); } } @@ -2484,8 +2483,7 @@ void DwarfDebug::emitDebugPubNames(bool GnuStyle) { Asm->EmitInt8(Desc.toBits()); } - if (Asm->isVerbose()) - Asm->OutStreamer.AddComment("External Name"); + Asm->OutStreamer.AddComment("External Name"); Asm->OutStreamer.EmitBytes(StringRef(Name, GI->getKeyLength() + 1)); } @@ -2522,8 +2520,7 @@ void DwarfDebug::emitDebugPubTypes(bool GnuStyle) { Asm->OutStreamer.EmitLabel(BeginLabel); - if (Asm->isVerbose()) - Asm->OutStreamer.AddComment("DWARF Version"); + Asm->OutStreamer.AddComment("DWARF Version"); Asm->EmitInt16(dwarf::DW_PUBTYPES_VERSION); Asm->OutStreamer.AddComment("Offset of Compilation Unit Info"); @@ -2544,8 +2541,7 @@ void DwarfDebug::emitDebugPubTypes(bool GnuStyle) { const char *Name = GI->getKeyData(); const DIE *Entity = GI->second; - if (Asm->isVerbose()) - Asm->OutStreamer.AddComment("DIE offset"); + Asm->OutStreamer.AddComment("DIE offset"); Asm->EmitInt32(Entity->getOffset()); if (GnuStyle) { @@ -2556,8 +2552,7 @@ void DwarfDebug::emitDebugPubTypes(bool GnuStyle) { Asm->EmitInt8(Desc.toBits()); } - if (Asm->isVerbose()) - Asm->OutStreamer.AddComment("External Name"); + Asm->OutStreamer.AddComment("External Name"); // Emit the name with a terminating null byte. Asm->OutStreamer.EmitBytes(StringRef(Name, GI->getKeyLength() + 1)); |