mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
Support for parsing mangled symbol names with a ".something" suffix in the demangler was originally added because the compiler was using that for function cloning, but since then the compiler has started using ".something" suffixes in many other cases, such as function renaming for ThinLTO and CFI. As a result, some symbols in binaries built with these features would fail to demangle. So instead of trying to validate what comes after the "." let's just stop parsing when we see a ".", so that the symbols are demangled correctly. This behavior is consistent with libc++. PiperOrigin-RevId: 756054147 Change-Id: I01e9e97eee32bee05ba243b615ed26a36b59591d