Preserve blockaddress use edges in the module splitter.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 31 Mar 2016 21:55:11 +0000 (21:55 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 31 Mar 2016 21:55:11 +0000 (21:55 +0000)
commitf74f091ea6141a6b7efc0f9480e10451bcb0c200
tree0df5aa9b8432f28054034d935b54c052956a389b
parentae272d718e882b18258a587ce111a4150d761b5e
Preserve blockaddress use edges in the module splitter.

"blockaddress" can not apply to an external function. All
blockaddress constant uses must belong to the same module as the
definition of the target function.

llvm-svn: 265061
llvm/lib/Transforms/Utils/SplitModule.cpp
llvm/test/tools/llvm-split/blockaddress.ll [new file with mode: 0644]