From dbf76421109b5a60f988f30f47f035bda6147c46 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 20 Sep 2013 00:38:18 +0000 Subject: Unbreak Clang build after r191050: don't pass a StringRef to snprintf. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191062 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/DebugInfo/DWARFContext.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp index db0d21f411..cbc1d5a41e 100644 --- a/lib/DebugInfo/DWARFContext.cpp +++ b/lib/DebugInfo/DWARFContext.cpp @@ -135,8 +135,9 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) { break; PubIndexEntryDescriptor desc(pubNames.getU8(&offset)); OS << format("0x%8.8x ", dieRef) - << format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage)) - << ' ' << dwarf::GDBIndexEntryKindString(desc.Kind) << " \"" + << format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage) + .str().c_str()) << ' ' + << dwarf::GDBIndexEntryKindString(desc.Kind) << " \"" << pubNames.getCStr(&offset) << "\"\n"; } } -- cgit v1.2.3