[llvm] r351482 - [demangler] Support for block literals.
Erik Pilkington via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 17 13:37:52 PST 2019
Author: epilk
Date: Thu Jan 17 13:37:51 2019
New Revision: 351482
URL: http://llvm.org/viewvc/llvm-project?rev=351482&view=rev
Log:
[demangler] Support for block literals.
Modified:
llvm/trunk/include/llvm/Demangle/ItaniumDemangle.h
Modified: llvm/trunk/include/llvm/Demangle/ItaniumDemangle.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Demangle/ItaniumDemangle.h?rev=351482&r1=351481&r2=351482&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Demangle/ItaniumDemangle.h (original)
+++ llvm/trunk/include/llvm/Demangle/ItaniumDemangle.h Thu Jan 17 13:37:51 2019
@@ -2480,6 +2480,12 @@ AbstractManglingParser<Derived, Alloc>::
return nullptr;
return make<ClosureTypeName>(Params, Count);
}
+ if (consumeIf("Ub")) {
+ (void)parseNumber();
+ if (!consumeIf('_'))
+ return nullptr;
+ return make<NameType>("'block-literal'");
+ }
return nullptr;
}
More information about the llvm-commits
mailing list