aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Demangle/RustDemangle.cpp
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-05-19 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-05-19 00:40:24 +0200
commit57f408861d423ead3fc408dbb203778938eb2fe3 (patch)
tree61e9790a741bed1fcac5ae4e20526178ac469a6d /llvm/lib/Demangle/RustDemangle.cpp
parent4fedb3a613a3ebfb91f42b454e476c29cd05b8f5 (diff)
downloadllvm-57f408861d423ead3fc408dbb203778938eb2fe3.zip
llvm-57f408861d423ead3fc408dbb203778938eb2fe3.tar.gz
llvm-57f408861d423ead3fc408dbb203778938eb2fe3.tar.bz2
[Demangle][Rust] Speculative fix for bot build failure
> error: ‘InType’ is not a class, namespace, or enumeration
Diffstat (limited to 'llvm/lib/Demangle/RustDemangle.cpp')
-rw-r--r--llvm/lib/Demangle/RustDemangle.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Demangle/RustDemangle.cpp b/llvm/lib/Demangle/RustDemangle.cpp
index 9370032..5430ce1 100644
--- a/llvm/lib/Demangle/RustDemangle.cpp
+++ b/llvm/lib/Demangle/RustDemangle.cpp
@@ -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;
}
}