[clang][alias|ifunc]: Add a diagnostic for mangled names
authorDhruv Chawla <dhruv263.dc@gmail.com>
Mon, 6 Mar 2023 16:16:16 +0000 (08:16 -0800)
committerErich Keane <erich.keane@intel.com>
Mon, 6 Mar 2023 16:59:02 +0000 (08:59 -0800)
commit9306ef9750b7a319d59f6d3e4977e01e39b8f161
tree4603648f64fe81f2b6715be0cad7523c5b010b70
parent38c85a419605417b818bc017aff734ab2f2007f5
[clang][alias|ifunc]: Add a diagnostic for mangled names

When an alias or ifunc attribute refers to a function name that is
mangled, a diagnostic is emitted to suggest the mangled name as a
replacement for the given function name for every matching name in the
current TU.

Fixes #59164

Differential Revision: https://reviews.llvm.org/D143803
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticFrontendKinds.td
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGen/alias.cpp [new file with mode: 0644]
clang/test/CodeGen/attr-ifunc.c
clang/test/CodeGen/attr-ifunc.cpp [new file with mode: 0644]
clang/test/Sema/attr-alias-elf.c
clang/test/SemaCXX/externc-ifunc-resolver.cpp