[llvm-commits] [llvm] r53369 - /llvm/trunk/lib/CodeGen/DwarfWriter.cpp
Evan Cheng
evan.cheng at apple.com
Wed Jul 9 14:53:02 PDT 2008
Author: evancheng
Date: Wed Jul 9 16:53:02 2008
New Revision: 53369
URL: http://llvm.org/viewvc/llvm-project?rev=53369&view=rev
Log:
Avoid creating expensive comment string if it's not going to be printed.
Modified:
llvm/trunk/lib/CodeGen/DwarfWriter.cpp
Modified: llvm/trunk/lib/CodeGen/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfWriter.cpp?rev=53369&r1=53368&r2=53369&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfWriter.cpp Wed Jul 9 16:53:02 2008
@@ -1091,7 +1091,10 @@
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 {
More information about the llvm-commits
mailing list