1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[Demangle][Rust] Speculative fix for bot build failure

> error: ‘InType’ is not a class, namespace, or enumeration
This commit is contained in:
Tomasz Miąsko 2021-05-19 00:00:00 +00:00
parent fb84758743
commit 2eaabe6011

View File

@ -110,7 +110,7 @@ bool Demangler::demangle(StringView Mangled) {
}
Input = Mangled;
demanglePath(InType::No);
demanglePath(rust_demangle::InType::No);
// FIXME parse optional <instantiating-crate>.
@ -160,7 +160,7 @@ void Demangler::demanglePath(InType InType) {
print("<");
demangleType();
print(" as ");
demanglePath(InType::Yes);
demanglePath(rust_demangle::InType::Yes);
print(">");
break;
}
@ -168,7 +168,7 @@ void Demangler::demanglePath(InType InType) {
print("<");
demangleType();
print(" as ");
demanglePath(InType::Yes);
demanglePath(rust_demangle::InType::Yes);
print(">");
break;
}
@ -211,7 +211,7 @@ void Demangler::demanglePath(InType InType) {
case 'I': {
demanglePath(InType);
// Omit "::" when in a type, where it is optional.
if (InType == InType::No)
if (InType == rust_demangle::InType::No)
print("::");
print("<");
for (size_t I = 0; !Error && !consumeIf('E'); ++I) {
@ -456,7 +456,7 @@ void Demangler::demangleType() {
}
default:
Position = Start;
demanglePath(InType::Yes);
demanglePath(rust_demangle::InType::Yes);
break;
}
}