[llvm-commits] [llvm] r53371 - /llvm/branches/Apple/Gaz/lib/CodeGen/DwarfWriter.cpp
Bill Wendling
isanbard at gmail.com
Wed Jul 9 14:58:45 PDT 2008
Author: void
Date: Wed Jul 9 16:58:44 2008
New Revision: 53371
URL: http://llvm.org/viewvc/llvm-project?rev=53371&view=rev
Log:
Pulling r53369 into Gaz:
Avoid creating expensive comment string if it's not going to be printed.
Modified:
llvm/branches/Apple/Gaz/lib/CodeGen/DwarfWriter.cpp
Modified: llvm/branches/Apple/Gaz/lib/CodeGen/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Gaz/lib/CodeGen/DwarfWriter.cpp?rev=53371&r1=53370&r2=53371&view=diff
==============================================================================
--- llvm/branches/Apple/Gaz/lib/CodeGen/DwarfWriter.cpp (original)
+++ llvm/branches/Apple/Gaz/lib/CodeGen/DwarfWriter.cpp Wed Jul 9 16:58:44 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