[Demangle][Rust] Parse references

Reviewed By: dblaikie

Part of https://reviews.llvm.org/D102580
This commit is contained in:
Tomasz Miąsko 2021-05-22 11:36:53 +02:00
parent 6aac56336d
commit e4fa6c95ac
2 changed files with 16 additions and 0 deletions

View File

@ -454,6 +454,16 @@ void Demangler::demangleType() {
print(")");
break;
}
case 'R':
print("&");
// FIXME demangle [<lifetime>].
demangleType();
break;
case 'Q':
print("&mut ");
// FIXME demangle [<lifetime>].
demangleType();
break;
case 'P':
print("*const ");
demangleType();

View File

@ -175,6 +175,12 @@ CHECK: types::<(_, _)>
CHECK: types::<(_, _, _)>
_RIC5typesTpppEE
CHECK: types::<&_>
_RIC5typesRpE
CHECK: types::<&mut _>
_RIC5typesQpE
CHECK: types::<*const _>
_RIC5typesPpE