[PATCH] D102578: [Demangle][Rust] Parse slice type
Tomasz Miąsko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 16 06:59:34 PDT 2021
tmiasko created this revision.
tmiasko added a reviewer: dblaikie.
Herald added subscribers: JDevlieghere, hiraditya.
tmiasko requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Depends on D102573 <https://reviews.llvm.org/D102573>
Repository:
rG LLVM Github Monorepo
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
@@ -163,6 +163,9 @@
CHECK: types::<[u8; 0]>
_RIC5typesAhj0_E
+CHECK: types::<[u8]>
+ _RIC5typesShE
+
; Integer constants. Test value demangling.
CHECK: integer::<0>
Index: llvm/lib/Demangle/RustDemangle.cpp
===================================================================
--- llvm/lib/Demangle/RustDemangle.cpp
+++ llvm/lib/Demangle/RustDemangle.cpp
@@ -434,6 +434,11 @@
demangleConst();
print("]");
break;
+ case 'S':
+ print("[");
+ demangleType();
+ print("]");
+ break;
case 'C':
case 'M':
case 'X':
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102578.345706.patch
Type: text/x-patch
Size: 735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210516/ca5c3510/attachment.bin>
More information about the llvm-commits
mailing list