mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
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
This commit is contained in:
parent
ac2673e4ea
commit
d411419422
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user