diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-07-09 21:53:02 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-07-09 21:53:02 +0000 |
commit | d41141942239c10c9979106e82ab45f22ad7c16c (patch) | |
tree | c55b66803b877e40570758c1c59caa81585aeb98 /lib/CodeGen/DwarfWriter.cpp | |
parent | ac2673e4ea84b6b6233155cfd2ad3fe734482601 (diff) |
Avoid creating expensive comment string if it's not going to be printed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53369 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DwarfWriter.cpp')
-rw-r--r-- | lib/CodeGen/DwarfWriter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index 8ce689f0af..a5862c9e87 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/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 { |