[PATCH] D101444: [demangler] Initial support for the new Rust mangling scheme

Tomasz Miąsko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 28 05:08:42 PDT 2021


tmiasko created this revision.
Herald added subscribers: JDevlieghere, hiraditya, mgorny.
Herald added a reviewer: jhenderson.
tmiasko requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add a demangling support for a small subset of a new Rust mangling
scheme, with complete support planned as a follow up work.

Intergate Rust demangling into llvm-cxxfilt and use llvm-cxxfilt for
end-to-end testing. The new Rust mangling scheme uses "_R" as a prefix,
which makes it easy to disambiguate it from other mangling schemes.

The public API is modeled after __cxa_demangle / llvm::itaniumDemangle,
since potential candidates for further integration use those.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101444

Files:
  llvm/include/llvm/Demangle/Demangle.h
  llvm/include/llvm/Demangle/RustDemangle.h
  llvm/lib/Demangle/CMakeLists.txt
  llvm/lib/Demangle/RustDemangle.cpp
  llvm/test/Demangle/rust.test
  llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp
  llvm/unittests/Demangle/CMakeLists.txt
  llvm/unittests/Demangle/RustDemangleTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101444.341152.patch
Type: text/x-patch
Size: 15979 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210428/3375519d/attachment.bin>


More information about the llvm-commits mailing list