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

[Demangle][Rust] Parse trait implementations

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

View File

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

View File

@ -41,6 +41,14 @@ CHECK: <_>
CHECK: <_>
_RMs_C5cratep
; Trait impl
CHECK: <_ as Clone>
_RXC5cratepC5Clone
CHECK: <_ as Clone>
_RXs_C5cratepC5Clone
; Generic type arguments
CHECK: generic::<_>