[llvm] 57f4088 - [Demangle][Rust] Speculative fix for bot build failure
Tomasz Miąsko via llvm-commits
llvm-commits at lists.llvm.org
Tue May 18 15:41:01 PDT 2021
Author: Tomasz Miąsko
Date: 2021-05-19T00:40:24+02:00
New Revision: 57f408861d423ead3fc408dbb203778938eb2fe3
URL: https://github.com/llvm/llvm-project/commit/57f408861d423ead3fc408dbb203778938eb2fe3
DIFF: https://github.com/llvm/llvm-project/commit/57f408861d423ead3fc408dbb203778938eb2fe3.diff
LOG: [Demangle][Rust] Speculative fix for bot build failure
> error: ‘InType’ is not a class, namespace, or enumeration
Added:
Modified:
llvm/lib/Demangle/RustDemangle.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Demangle/RustDemangle.cpp b/llvm/lib/Demangle/RustDemangle.cpp
index 9370032b8d8e3..5430ce1c97efa 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;
}
}
More information about the llvm-commits
mailing list