[all-commits] [llvm/llvm-project] 731040: [demangler] Initial support for the new Rust mangl...

tmiasko via All-commits all-commits at lists.llvm.org
Mon May 3 17:05:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7310403e3cdf8a436f94770e1a1498db05d2d091
      https://github.com/llvm/llvm-project/commit/7310403e3cdf8a436f94770e1a1498db05d2d091
  Author: Tomasz Miąsko <tomasz.miasko at gmail.com>
  Date:   2021-05-03 (Mon, 03 May 2021)

  Changed paths:
    M llvm/include/llvm/Demangle/Demangle.h
    A llvm/include/llvm/Demangle/RustDemangle.h
    M llvm/lib/Demangle/CMakeLists.txt
    A llvm/lib/Demangle/RustDemangle.cpp
    A llvm/test/Demangle/rust.test
    M llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp
    M llvm/unittests/Demangle/CMakeLists.txt
    A llvm/unittests/Demangle/RustDemangleTest.cpp

  Log Message:
  -----------
  [demangler] Initial support for the new Rust mangling scheme

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.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D101444




More information about the All-commits mailing list