summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TextAPI/MachO/Symbol.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-04-29 18:25:04 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-04-29 18:25:04 +0000
commit1c4c641ebc9493ee1c01f95a159682ad813650ce (patch)
tree5f6139e00dea4dc2aa468c7daa37b9a1dc967a21 /llvm/lib/TextAPI/MachO/Symbol.cpp
parent9d99372f732a792397161d6483346eef648eb13b (diff)
downloadbcm5719-llvm-1c4c641ebc9493ee1c01f95a159682ad813650ce.tar.gz
bcm5719-llvm-1c4c641ebc9493ee1c01f95a159682ad813650ce.zip
[TextAPI] Fix Symbol::dump which was failing to append the SymbolKind string.
Reported in https://www.viva64.com/en/b/0629/ llvm-svn: 359478
Diffstat (limited to 'llvm/lib/TextAPI/MachO/Symbol.cpp')
-rw-r--r--llvm/lib/TextAPI/MachO/Symbol.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/TextAPI/MachO/Symbol.cpp b/llvm/lib/TextAPI/MachO/Symbol.cpp
index 8c9ec78a96a..731b264f608 100644
--- a/llvm/lib/TextAPI/MachO/Symbol.cpp
+++ b/llvm/lib/TextAPI/MachO/Symbol.cpp
@@ -29,16 +29,16 @@ LLVM_DUMP_METHOD void Symbol::dump(raw_ostream &OS) const {
Result += "(tlv) ";
switch (Kind) {
case SymbolKind::GlobalSymbol:
- Result + Name.str();
+ Result += Name.str();
break;
case SymbolKind::ObjectiveCClass:
- Result + "(ObjC Class) " + Name.str();
+ Result += "(ObjC Class) " + Name.str();
break;
case SymbolKind::ObjectiveCClassEHType:
- Result + "(ObjC Class EH) " + Name.str();
+ Result += "(ObjC Class EH) " + Name.str();
break;
case SymbolKind::ObjectiveCInstanceVariable:
- Result + "(ObjC IVar) " + Name.str();
+ Result += "(ObjC IVar) " + Name.str();
break;
}
OS << Result;
OpenPOWER on IntegriCloud