mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user