mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Directly print to a raw_ostream instead of printing to a buffer first.
llvm-svn: 133352
This commit is contained in:
parent
a16cba3e83
commit
1525b80eef
@ -354,10 +354,7 @@ void MCDwarfLineAddr::Encode(int64_t LineDelta, uint64_t AddrDelta,
|
||||
OS << char(dwarf::DW_LNS_const_add_pc);
|
||||
else {
|
||||
OS << char(dwarf::DW_LNS_advance_pc);
|
||||
SmallString<32> Tmp;
|
||||
raw_svector_ostream OSE(Tmp);
|
||||
MCObjectWriter::EncodeULEB128(AddrDelta, OSE);
|
||||
OS << OSE.str();
|
||||
MCObjectWriter::EncodeULEB128(AddrDelta, OS);
|
||||
}
|
||||
OS << char(dwarf::DW_LNS_extended_op);
|
||||
OS << char(1);
|
||||
|
Loading…
Reference in New Issue
Block a user