[all-commits] [llvm/llvm-project] e117fd: [Symbolize][MinGW] Support demangling i386 call-co...

alvinhochun via All-commits all-commits at lists.llvm.org
Wed Feb 15 03:07:56 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e117fd28d525ead14b809da3a9b5ef22710ca351
      https://github.com/llvm/llvm-project/commit/e117fd28d525ead14b809da3a9b5ef22710ca351
  Author: Alvin Wong <alvin at alvinhc.com>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

  Changed paths:
    M llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
    A llvm/test/DebugInfo/symbolize-demangling-mingw32.s

  Log Message:
  -----------
  [Symbolize][MinGW] Support demangling i386 call-conv-decorated C++ names

On i386 Windows, after C++ names have been Itanium-mangled, the C name
mangling specific to its call convention may also be applied on top.
This change teaches symbolizer to be able to demangle this type of
mangled names.

As part of this change, `demanglePE32ExternCFunc` has also been modified
to fix unwanted stripping for vectorcall names when the demangled name
is supposed to contain a leading `_`. Notice that the vectorcall
mangling does not add either an `_` or `@` prefix. The old code always
tries to strip the prefix first, which for Itanium mangled names in
vectorcall, the leading underscore of the Itanium name gets stripped
instead and breaks the Itanium demangler.

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




More information about the All-commits mailing list