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:
parent
160e922bf8
commit
0529498484
@ -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)) {
|
||||
|
@ -41,6 +41,14 @@ CHECK: <_>
|
||||
CHECK: <_>
|
||||
_RMs_C5cratep
|
||||
|
||||
; Trait impl
|
||||
|
||||
CHECK: <_ as Clone>
|
||||
_RXC5cratepC5Clone
|
||||
|
||||
CHECK: <_ as Clone>
|
||||
_RXs_C5cratepC5Clone
|
||||
|
||||
; Generic type arguments
|
||||
|
||||
CHECK: generic::<_>
|
||||
|
Loading…
Reference in New Issue
Block a user