aboutsummaryrefslogtreecommitdiffstats
path: root/lib/DebugInfo
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
commitdbf76421109b5a60f988f30f47f035bda6147c46 (patch)
treef014a8b5fc8e47302585e8a0ee3c499ccc060065 /lib/DebugInfo
parentac3f016599ac50a4777b0348c43892c041ef489b (diff)
downloadexternal_llvm-dbf76421109b5a60f988f30f47f035bda6147c46.zip
external_llvm-dbf76421109b5a60f988f30f47f035bda6147c46.tar.gz
external_llvm-dbf76421109b5a60f988f30f47f035bda6147c46.tar.bz2
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
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r--lib/DebugInfo/DWARFContext.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp
index db0d21f..cbc1d5a 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";
}
}