summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2019-01-17 21:37:51 +0000
committerErik Pilkington <erik.pilkington@gmail.com>2019-01-17 21:37:51 +0000
commitb2d6c298af3dd8230d2be0cd8e40dcddbd9beecf (patch)
tree09f9d02788ecb526bb7419a6cc4420650887acdf /llvm
parent75a4d7644e651b829611945ad73d1b1d3ef29c5f (diff)
downloadbcm5719-llvm-b2d6c298af3dd8230d2be0cd8e40dcddbd9beecf.tar.gz
bcm5719-llvm-b2d6c298af3dd8230d2be0cd8e40dcddbd9beecf.zip
[demangler] Support for block literals.
llvm-svn: 351482
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Demangle/ItaniumDemangle.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Demangle/ItaniumDemangle.h b/llvm/include/llvm/Demangle/ItaniumDemangle.h
index 9a54ff5d80d..f35c062cd6d 100644
--- a/llvm/include/llvm/Demangle/ItaniumDemangle.h
+++ b/llvm/include/llvm/Demangle/ItaniumDemangle.h
@@ -2480,6 +2480,12 @@ AbstractManglingParser<Derived, Alloc>::parseUnnamedTypeName(NameState *) {
return nullptr;
return make<ClosureTypeName>(Params, Count);
}
+ if (consumeIf("Ub")) {
+ (void)parseNumber();
+ if (!consumeIf('_'))
+ return nullptr;
+ return make<NameType>("'block-literal'");
+ }
return nullptr;
}
OpenPOWER on IntegriCloud