Fix llvm-extract so that it changes the linkage of all GlobalValues to
authorBob Wilson <bob.wilson@apple.com>
Thu, 23 Sep 2010 17:25:06 +0000 (17:25 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 23 Sep 2010 17:25:06 +0000 (17:25 +0000)
commitedf017487ffdd52cd42f3129c0e6b78fffb31e89
tree20ec393da7c95d7eef1895b629cc98dc6903f855
parent32d2c5de6419a4f8dec260d9ab557004534e0970
Fix llvm-extract so that it changes the linkage of all GlobalValues to
"external" even when doing lazy bitcode loading.  This was broken because
a function that is not materialized fails the !isDeclaration() test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114666 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/ExtractGV.cpp
test/Other/extract.ll