From 1525b80eef04853e0359f74527bbecbbd5a1ccd2 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 18 Jun 2011 14:42:47 +0000 Subject: [PATCH] Directly print to a raw_ostream instead of printing to a buffer first. llvm-svn: 133352 --- lib/MC/MCDwarf.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp index 13cb81ab441..97e7dbdf868 100644 --- a/lib/MC/MCDwarf.cpp +++ b/lib/MC/MCDwarf.cpp @@ -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);