[llvm] r191062 - Unbreak Clang build after r191050: don't pass a StringRef to snprintf.
Richard Smith
richard-llvm at metafoo.co.uk
Thu Sep 19 17:38:18 PDT 2013
Author: rsmith
Date: Thu Sep 19 19:38:18 2013
New Revision: 191062
URL: http://llvm.org/viewvc/llvm-project?rev=191062&view=rev
Log:
Unbreak Clang build after r191050: don't pass a StringRef to snprintf.
Modified:
llvm/trunk/lib/DebugInfo/DWARFContext.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARFContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFContext.cpp?rev=191062&r1=191061&r2=191062&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFContext.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFContext.cpp Thu Sep 19 19:38:18 2013
@@ -135,8 +135,9 @@ void DWARFContext::dump(raw_ostream &OS,
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";
}
}
More information about the llvm-commits
mailing list