HomePhabricator

[demangler] Initial support for the new Rust mangling scheme

Authored by tmiasko on May 3 2021, 4:41 PM.

Description

[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

Details

Committed
dblaikieMay 3 2021, 4:44 PM
Reviewer
dblaikie
Differential Revision
D101444: [demangler] Initial support for the new Rust mangling scheme
Parents
rG73332d73e15f: [lld][WebAssembly] Do not merge comdat data segments
Branches
Unknown
Tags
Unknown