mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
Directly print to a raw_ostream instead of printing to a buffer first.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133352 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1a81d48bde
commit
dcf0e0c44b
@ -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