summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-09-20 00:38:18 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-09-20 00:38:18 +0000
commit2767048baeb25beb0bd846797ca122c4f668a87b (patch)
treecb5b49b50981adb52cebafa3547ecc591752f01c /llvm/lib
parent9f5f635e7f8ca70f7cd158b956e38441dd066cfd (diff)
downloadbcm5719-llvm-2767048baeb25beb0bd846797ca122c4f668a87b.tar.gz
bcm5719-llvm-2767048baeb25beb0bd846797ca122c4f668a87b.zip
Unbreak Clang build after r191050: don't pass a StringRef to snprintf.
llvm-svn: 191062
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/DebugInfo/DWARFContext.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARFContext.cpp
index db0d21f4112..cbc1d5a41e5 100644
--- a/llvm/lib/DebugInfo/DWARFContext.cpp
+++ b/llvm/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";
}
}
OpenPOWER on IntegriCloud