summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-10-05 05:59:29 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-10-05 05:59:29 +0000
commit149f6eaed9818057b83d8f0b17bb5e8764a13143 (patch)
treeb0b1a0063de2bc0dfc3db17266a1d477be54c844 /llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
parentefe40389c0e82cf173f88979c56420dfeba6b8ed (diff)
downloadbcm5719-llvm-149f6eaed9818057b83d8f0b17bb5e8764a13143.tar.gz
bcm5719-llvm-149f6eaed9818057b83d8f0b17bb5e8764a13143.zip
Re-commit "Use StringRef in Support/Darf APIs (NFC)"
This reverts commit r283285 and re-commit r283275 with a fix for format("%s", Str); where Str is a StringRef. llvm-svn: 283298
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index 1a0b7e568de..c2602ba2196 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -54,8 +54,10 @@ static void dumpPubSection(raw_ostream &OS, StringRef Name, StringRef Data,
OS << format("0x%8.8x ", dieRef);
if (GnuStyle) {
PubIndexEntryDescriptor desc(pubNames.getU8(&offset));
- OS << format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage))
- << ' ' << format("%-8s", dwarf::GDBIndexEntryKindString(desc.Kind))
+ OS << format("%-8s",
+ dwarf::GDBIndexEntryLinkageString(desc.Linkage).data())
+ << ' '
+ << format("%-8s", dwarf::GDBIndexEntryKindString(desc.Kind).data())
<< ' ';
}
OS << '\"' << pubNames.getCStr(&offset) << "\"\n";
OpenPOWER on IntegriCloud