mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 07:24:47 +00:00
Revert "Prevent alias from pointing to weak aliases."
This reverts commit r204781. I will follow up to with msan folks to see what is what they were trying to do with aliases to weak aliases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204784 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
; RUN: opt < %s -globalopt -S | FileCheck %s
|
||||
|
||||
@foo1 = alias void ()* @foo2
|
||||
; CHECK: @foo1 = alias void ()* @bar2
|
||||
; CHECK: @foo1 = alias void ()* @foo2
|
||||
|
||||
@foo2 = alias void()* @bar1
|
||||
; CHECK: @foo2 = alias void ()* @bar2
|
||||
@foo2 = alias weak void()* @bar1
|
||||
; CHECK: @foo2 = alias weak void ()* @bar2
|
||||
|
||||
@bar1 = alias void ()* @bar2
|
||||
; CHECK: @bar1 = alias void ()* @bar2
|
||||
|
||||
@weak1 = alias weak void ()* @bar2
|
||||
; CHECK: @weak1 = alias weak void ()* @bar2
|
||||
|
||||
define void @bar2() {
|
||||
ret void
|
||||
}
|
||||
@@ -20,16 +17,14 @@ define void @bar2() {
|
||||
define void @baz() {
|
||||
entry:
|
||||
call void @foo1()
|
||||
; CHECK: call void @bar2()
|
||||
; CHECK: call void @foo2()
|
||||
|
||||
call void @foo2()
|
||||
; CHECK: call void @bar2()
|
||||
; CHECK: call void @foo2()
|
||||
|
||||
call void @bar1()
|
||||
; CHECK: call void @bar2()
|
||||
|
||||
call void @weak1()
|
||||
; CHECK: call void @weak1()
|
||||
ret void
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user