[LTO] Scan all per-function subtargets when collecting runtime library names.
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 30 Jan 2015 01:16:24 +0000 (01:16 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 30 Jan 2015 01:16:24 +0000 (01:16 +0000)
commit6953381b0c2e770c50bf41e13b5de9e567c992d5
tree6ad934671787fcd1176f9b61c88e0942a43d91ec
parent31db3d6d6207f402c4490601f992085b103bab80
[LTO] Scan all per-function subtargets when collecting runtime library names.

accumulateAndSortLibcalls in LTOCodeGenerator.cpp collects names of runtime
library functions which are used to identify user-defined functions that should
be protected. Previously, this function would only scan the TargetLowering
object belonging to the "main" subtarget for the library function names. This
commit changes it to scan all per-function subtargets.

Differential Revision: http://reviews.llvm.org/D7275

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227533 91177308-0d34-0410-b5e6-96231b3b80d8
lib/LTO/LTOCodeGenerator.cpp
test/LTO/runtime-library-subtarget.ll [new file with mode: 0644]