]> granicus.if.org Git - llvm/commit
Linker: Add support for GlobalIFunc.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 8 Aug 2019 22:09:18 +0000 (22:09 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 8 Aug 2019 22:09:18 +0000 (22:09 +0000)
commit03bcb7174100e6d296fffbd2951fc08da3387845
treecc8bf0f3dc0c7d7fc8bca2db2c0cbe976a6d1059
parent9c9d6b00b50f0e1b8c2655e5bbe5d411337ab87f
Linker: Add support for GlobalIFunc.

GlobalAlias and GlobalIFunc ought to be treated the same by the IR
linker, so we can generalize the code to be in terms of their common
base class GlobalIndirectSymbol.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368357 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/GlobalAlias.h
include/llvm/IR/GlobalIFunc.h
include/llvm/IR/GlobalIndirectSymbol.h
include/llvm/Transforms/Utils/ValueMapper.h
lib/Linker/IRMover.cpp
lib/Transforms/Utils/ValueMapper.cpp
test/LTO/Resolution/X86/Inputs/ifunc2.ll [new file with mode: 0644]
test/LTO/Resolution/X86/ifunc2.ll [new file with mode: 0644]