[Demangle][Rust] Parse dot suffix
authorTomasz Miąsko <tomasz.miasko@gmail.com>
Fri, 18 Jun 2021 07:27:50 +0000 (09:27 +0200)
committerTomasz Miąsko <tomasz.miasko@gmail.com>
Fri, 18 Jun 2021 07:29:45 +0000 (09:29 +0200)
commit2a5bb9c877f23224ee6b789054b4edfa17b4fd30
tree9b958fa2d44868a2d73695658a5fcc9b3d8ee840
parent6de741de08a11048027cb4d4e4d5d4bd067319fa
[Demangle][Rust] Parse dot suffix

Allow mangled names to include an arbitrary dot suffix, akin to vendor
specific suffix in Itanium mangling.

Primary motivation is a support for symbols renamed during ThinLTO
import / promotion (ThinLTO is the default configuration for optimized
builds in rustc).

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D104358
llvm/lib/Demangle/RustDemangle.cpp
llvm/test/Demangle/rust.test