summaryrefslogtreecommitdiff
path: root/test/Other
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-09-23 17:25:06 +0000
committerBob Wilson <bob.wilson@apple.com>2010-09-23 17:25:06 +0000
commitedf017487ffdd52cd42f3129c0e6b78fffb31e89 (patch)
tree20ec393da7c95d7eef1895b629cc98dc6903f855 /test/Other
parent32d2c5de6419a4f8dec260d9ab557004534e0970 (diff)
downloadllvm-edf017487ffdd52cd42f3129c0e6b78fffb31e89.tar.gz
llvm-edf017487ffdd52cd42f3129c0e6b78fffb31e89.tar.bz2
llvm-edf017487ffdd52cd42f3129c0e6b78fffb31e89.tar.xz
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
Diffstat (limited to 'test/Other')
-rw-r--r--test/Other/extract.ll7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Other/extract.ll b/test/Other/extract.ll
index 46962d094f..57573ed76f 100644
--- a/test/Other/extract.ll
+++ b/test/Other/extract.ll
@@ -10,13 +10,18 @@
; CHECK: define void @foo() {
; CHECK: ret void
; CHECK: }
+
+; The linkonce_odr linkage for foo() should be changed to external linkage.
+; DELETE: declare void @foo()
; DELETE: define void @bar() {
+; DELETE: call void @foo()
; DELETE: ret void
; DELETE: }
-define void @foo() {
+define linkonce_odr void @foo() {
ret void
}
define void @bar() {
+ call void @foo()
ret void
}