[PATCH] D102578: [Demangle][Rust] Parse slice type
Tomasz Miąsko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 17 07:54:53 PDT 2021
tmiasko updated this revision to Diff 345883.
tmiasko added a comment.
Rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102578/new/
https://reviews.llvm.org/D102578
Files:
llvm/lib/Demangle/RustDemangle.cpp
llvm/test/Demangle/rust.test
Index: llvm/test/Demangle/rust.test
===================================================================
--- llvm/test/Demangle/rust.test
+++ llvm/test/Demangle/rust.test
@@ -160,6 +160,9 @@
CHECK: types::<[u8; 0]>
_RIC5typesAhj0_E
+CHECK: types::<[_]>
+ _RIC5typesSpE
+
; Integer constants. Test value demangling.
CHECK: integer::<0>
Index: llvm/lib/Demangle/RustDemangle.cpp
===================================================================
--- llvm/lib/Demangle/RustDemangle.cpp
+++ llvm/lib/Demangle/RustDemangle.cpp
@@ -436,6 +436,11 @@
demangleConst();
print("]");
break;
+ case 'S':
+ print("[");
+ demangleType();
+ print("]");
+ break;
default:
Position = Start;
demanglePath(InType::Yes);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102578.345883.patch
Type: text/x-patch
Size: 762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210517/e7222448/attachment.bin>
More information about the llvm-commits
mailing list