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:
parent
46f03cce1a
commit
181c195445
@ -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;
|
||||
|
@ -9,6 +9,11 @@ CHECK: hello::rust
|
||||
CHECK: a::b::c
|
||||
_RNvNvC1a1b1c
|
||||
|
||||
; Instantiating crate
|
||||
|
||||
CHECK: crate
|
||||
_RC5crateC3foo
|
||||
|
||||
; Closure namespace
|
||||
|
||||
CHECK: crate::{closure#0}
|
||||
|
Loading…
Reference in New Issue
Block a user