mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
MC'ize padding when padding the ULEB128 value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2a1263b1e1
commit
f0bd4cc1b6
@ -183,13 +183,11 @@ void DwarfPrinter::EmitULEB128(unsigned Value, const char *Desc,
|
|||||||
Asm->OutStreamer.EmitIntValue(Byte, 1, /*addrspace*/0);
|
Asm->OutStreamer.EmitIntValue(Byte, 1, /*addrspace*/0);
|
||||||
} while (Value);
|
} while (Value);
|
||||||
|
|
||||||
if (PadTo)
|
if (PadTo) {
|
||||||
while (PadTo--) {
|
if (PadTo > 1)
|
||||||
unsigned char Byte = (PadTo ? 0x80 : 0x00);
|
Asm->OutStreamer.EmitFill(PadTo - 1, 0x80/*fillval*/, 0/*addrspace*/);
|
||||||
if (Asm->VerboseAsm)
|
Asm->OutStreamer.EmitFill(1, 0/*fillval*/, 0/*addrspace*/);
|
||||||
Asm->OutStreamer.AddComment("Padding");
|
}
|
||||||
Asm->OutStreamer.EmitIntValue(Byte, 1, /*addrspace*/0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user