aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Demangle/RustDemangle.cpp
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-06-07 23:34:34 +0200
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-06-08 10:01:49 +0200
commit82b7e822d00596ec8a02490f1d662ed0fa872b54 (patch)
treebcc0cbc13e49c81b0b8c661b2b63707a17edb335 /llvm/lib/Demangle/RustDemangle.cpp
parent392af6a78bb7dfb87a24ed66db598c1d09ac756b (diff)
downloadllvm-82b7e822d00596ec8a02490f1d662ed0fa872b54.zip
llvm-82b7e822d00596ec8a02490f1d662ed0fa872b54.tar.gz
llvm-82b7e822d00596ec8a02490f1d662ed0fa872b54.tar.bz2
[Demangle][Rust] Parse path backreferences
Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D103459
Diffstat (limited to 'llvm/lib/Demangle/RustDemangle.cpp')
-rw-r--r--llvm/lib/Demangle/RustDemangle.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Demangle/RustDemangle.cpp b/llvm/lib/Demangle/RustDemangle.cpp
index 582cdbc..3ce73f5 100644
--- a/llvm/lib/Demangle/RustDemangle.cpp
+++ b/llvm/lib/Demangle/RustDemangle.cpp
@@ -232,8 +232,12 @@ bool Demangler::demanglePath(InType InType, LeaveOpen LeaveOpen) {
print(">");
break;
}
+ case 'B': {
+ bool IsOpen = false;
+ demangleBackref([&] { IsOpen = demanglePath(InType, LeaveOpen); });
+ return IsOpen;
+ }
default:
- // FIXME parse remaining productions.
Error = true;
break;
}