mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-12-09 03:19:21 +00:00
Add an option to pad an uleb128 to MCObjectWriter and remove the uleb128 encoding from the DWARF asm printer.
As a side effect we now print dwarf ulebs with .ascii directives. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143809 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -94,10 +94,11 @@ void MCStreamer::EmitIntValue(uint64_t Value, unsigned Size,
|
||||
|
||||
/// EmitULEB128Value - Special case of EmitULEB128Value that avoids the
|
||||
/// client having to pass in a MCExpr for constant integers.
|
||||
void MCStreamer::EmitULEB128IntValue(uint64_t Value, unsigned AddrSpace) {
|
||||
void MCStreamer::EmitULEB128IntValue(uint64_t Value, unsigned AddrSpace,
|
||||
unsigned Padding) {
|
||||
SmallString<32> Tmp;
|
||||
raw_svector_ostream OSE(Tmp);
|
||||
MCObjectWriter::EncodeULEB128(Value, OSE);
|
||||
MCObjectWriter::EncodeULEB128(Value, OSE, Padding);
|
||||
EmitBytes(OSE.str(), AddrSpace);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user