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:
Rafael Espindola
2014-03-26 06:14:40 +00:00
parent 360ee97179
commit 72db10a995
18 changed files with 61 additions and 58 deletions

View File

@@ -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
}