llvm-extract: Replace IFuncs with declarations
authorChristian Ulmann <christian.ulmann@nextsilicon.com>
Tue, 6 Jun 2023 06:54:03 +0000 (06:54 +0000)
committerChristian Ulmann <christian.ulmann@nextsilicon.com>
Tue, 6 Jun 2023 07:18:33 +0000 (07:18 +0000)
commit2544d91956f9b7b955f13dc2ffb12da30c5f7f87
tree88a1d2e327c8ecf392215db505bc6cacd6aa4e47
parent5a10f207cc3714195281b6db11ec3f0fe9110228
llvm-extract: Replace IFuncs with declarations

This commit ensures that llvm-extract does not copy all IFuncs into the
resulting modules. Before this change, ifuncs were not modified which
could cause the emission unexpected IR files.

Reviewed By: darthscsi

Differential Revision: https://reviews.llvm.org/D152148
llvm/lib/Transforms/IPO/ExtractGV.cpp
llvm/test/tools/llvm-extract/delete-ifunc.ll [new file with mode: 0644]