projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac2673e
)
Avoid creating expensive comment string if it's not going to be printed.
author
Evan Cheng
<evan.cheng@apple.com>
Wed, 9 Jul 2008 21:53:02 +0000
(21:53 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Wed, 9 Jul 2008 21:53:02 +0000
(21:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53369
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/DwarfWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/DwarfWriter.cpp
b/lib/CodeGen/DwarfWriter.cpp
index 8ce689f0af4941fd56a033646e9caec1da6d9375..a5862c9e872b9d2c39428c605adccb28dfa659bb 100644
(file)
--- 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 {