OSDN Git Service

[MergeFunctions] Replace all uses of unnamed_addr functions.
authorwhitequark <whitequark@whitequark.org>
Sun, 15 Oct 2017 12:29:01 +0000 (12:29 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 15 Oct 2017 12:29:01 +0000 (12:29 +0000)
commite53e8bdb9baba4e9f5ae32c50c04184780c07a0b
tree68f1c5b979399192ff9b5a7b6871ba1bcaec9f41
parent49fe891017a6ae7a39112fcd4bcf37e1f0330d53
[MergeFunctions] Replace all uses of unnamed_addr functions.

This reduces code size for constructs like vtables or interrupt
tables that refer to functions in global initializers.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315852 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/MergeFunctions.cpp
test/Transforms/MergeFunc/merge-unnamed-addr-bitcast.ll [new file with mode: 0644]
test/Transforms/MergeFunc/merge-unnamed-addr.ll [new file with mode: 0644]