summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-07-09 21:53:02 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-07-09 21:53:02 +0000
commit1787443028c3cee445f7c8057cda1e3a43981114 (patch)
tree13c7962335a952d7582c2960c3828d865a16e89f /llvm/lib/CodeGen
parent443864544ef894def98e0fa2bff45a368078d5c2 (diff)
downloadbcm5719-llvm-1787443028c3cee445f7c8057cda1e3a43981114.tar.gz
bcm5719-llvm-1787443028c3cee445f7c8057cda1e3a43981114.zip
Avoid creating expensive comment string if it's not going to be printed.
llvm-svn: 53369
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index 8ce689f0af4..a5862c9e872 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/DwarfWriter.cpp
@@ -1091,7 +1091,10 @@ public:
Asm->EOL("Offset");
} else if (Reg < 64) {
Asm->EmitInt8(DW_CFA_offset + Reg);
- Asm->EOL("DW_CFA_offset + Reg (" + utostr(Reg) + ")");
+ if (VerboseAsm)
+ Asm->EOL("DW_CFA_offset + Reg (" + utostr(Reg) + ")");
+ else
+ Asm->EOL();
Asm->EmitULEB128Bytes(Offset);
Asm->EOL("Offset");
} else {
OpenPOWER on IntegriCloud