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:
parent
0529498484
commit
5f48540e55
@ -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)) {
|
||||
|
@ -49,6 +49,11 @@ CHECK: <_ as Clone>
|
||||
CHECK: <_ as Clone>
|
||||
_RXs_C5cratepC5Clone
|
||||
|
||||
; Trait definition
|
||||
|
||||
CHECK: <_ as Ord>
|
||||
_RYpC3Ord
|
||||
|
||||
; Generic type arguments
|
||||
|
||||
CHECK: generic::<_>
|
||||
|
Loading…
Reference in New Issue
Block a user