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

[Demangle][Rust] Parse instantiating crate

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D103460
This commit is contained in:
Tomasz Miąsko 2021-06-07 19:11:16 +02:00
parent 46f03cce1a
commit 181c195445
2 changed files with 9 additions and 1 deletions

View File

@ -113,7 +113,10 @@ bool Demangler::demangle(StringView Mangled) {
demanglePath(rust_demangle::InType::No);
// FIXME parse optional <instantiating-crate>.
if (Position != Input.size()) {
SwapAndRestore<bool> SavePrint(Print, false);
demanglePath(InType::No);
}
if (Position != Input.size())
Error = true;

View File

@ -9,6 +9,11 @@ CHECK: hello::rust
CHECK: a::b::c
_RNvNvC1a1b1c
; Instantiating crate
CHECK: crate
_RC5crateC3foo
; Closure namespace
CHECK: crate::{closure#0}