1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[Demangle][Rust] Parse slice type

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D102578
This commit is contained in:
Tomasz Miąsko 2021-05-18 18:14:43 +02:00
parent 52d80831c8
commit b7d704310d
2 changed files with 8 additions and 0 deletions

View File

@ -436,6 +436,11 @@ void Demangler::demangleType() {
demangleConst();
print("]");
break;
case 'S':
print("[");
demangleType();
print("]");
break;
default:
Position = Start;
demanglePath(InType::Yes);

View File

@ -160,6 +160,9 @@ CHECK: named::<Name<>>
CHECK: types::<[u8; 0]>
_RIC5typesAhj0_E
CHECK: types::<[_]>
_RIC5typesSpE
; Integer constants. Test value demangling.
CHECK: integer::<0>