1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

[Demangle][Rust] Parse trait definitions

Part of https://reviews.llvm.org/D102549
This commit is contained in:
Tomasz Miąsko 2021-05-15 23:33:24 +02:00
parent 0529498484
commit 5f48540e55
2 changed files with 13 additions and 0 deletions

View File

@ -162,6 +162,14 @@ void Demangler::demanglePath() {
print(">");
break;
}
case 'Y': {
print("<");
demangleType();
print(" as ");
demanglePath();
print(">");
break;
}
case 'N': {
char NS = consume();
if (!isLower(NS) && !isUpper(NS)) {

View File

@ -49,6 +49,11 @@ CHECK: <_ as Clone>
CHECK: <_ as Clone>
_RXs_C5cratepC5Clone
; Trait definition
CHECK: <_ as Ord>
_RYpC3Ord
; Generic type arguments
CHECK: generic::<_>