summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Demangle
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-09-07 00:11:53 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-09-07 00:11:53 +0000
commit0e881b9f5d1fd3c615f79860eacedaecad03daea (patch)
treef78719f437c1495ae14a3093cb87109595dec57a /llvm/lib/Demangle
parent4bbe85c5d4e7535a55e3455de310868067d0182a (diff)
downloadbcm5719-llvm-0e881b9f5d1fd3c615f79860eacedaecad03daea.tar.gz
bcm5719-llvm-0e881b9f5d1fd3c615f79860eacedaecad03daea.zip
Synchronize LLVM's copy of libc++abi's demangler with the libc++abi
version after r371273. Also fix a minor issue in r371273 that only surfaced after template instantiation from LLVM's use of the demangler. llvm-svn: 371274
Diffstat (limited to 'llvm/lib/Demangle')
-rw-r--r--llvm/lib/Demangle/ItaniumDemangle.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Demangle/ItaniumDemangle.cpp b/llvm/lib/Demangle/ItaniumDemangle.cpp
index 5c99c70e3cc..760d28b3ab9 100644
--- a/llvm/lib/Demangle/ItaniumDemangle.cpp
+++ b/llvm/lib/Demangle/ItaniumDemangle.cpp
@@ -174,6 +174,16 @@ struct DumpVisitor {
return printStr("SpecialSubKind::iostream");
}
}
+ void print(TemplateParamKind TPK) {
+ switch (TPK) {
+ case TemplateParamKind::Type:
+ return printStr("TemplateParamKind::Type");
+ case TemplateParamKind::NonType:
+ return printStr("TemplateParamKind::NonType");
+ case TemplateParamKind::Template:
+ return printStr("TemplateParamKind::Template");
+ }
+ }
void newLine() {
printStr("\n");
OpenPOWER on IntegriCloud