forked from OSchip/llvm-project
Cleanup test case by removing unused attribute dso_local
Attribute 'dso_local' generated in bitcode from compiling original C file but isn't needed. Differential Revision: https://reviews.llvm.org/D55521 llvm-svn: 348835
This commit is contained in:
parent
f44c6f402c
commit
ce24c878d9
|
@ -1,19 +1,19 @@
|
||||||
; RUN: opt < %s -constprop -S -o - | FileCheck %s
|
; RUN: opt < %s -constprop -S -o - | FileCheck %s
|
||||||
|
|
||||||
; Function Attrs: minsize norecurse nounwind optsize readnone
|
; Function Attrs: minsize norecurse nounwind optsize readnone
|
||||||
define dso_local void @foo1() #0 {
|
define void @foo1() #0 {
|
||||||
entry:
|
entry:
|
||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
|
||||||
; Function Attrs: minsize norecurse nounwind optsize readnone
|
; Function Attrs: minsize norecurse nounwind optsize readnone
|
||||||
define dso_local void @foo2() align 4 {
|
define void @foo2() align 4 {
|
||||||
entry:
|
entry:
|
||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
|
||||||
; Function Attrs: minsize nounwind optsize
|
; Function Attrs: minsize nounwind optsize
|
||||||
define dso_local i32 @main() local_unnamed_addr #1 {
|
define i32 @main() local_unnamed_addr #1 {
|
||||||
entry:
|
entry:
|
||||||
; CHECK: ptrtoint
|
; CHECK: ptrtoint
|
||||||
%call = tail call i32 bitcast (i32 (...)* @process to i32 (i32)*)(i32 and (i32 ptrtoint (void ()* @foo1 to i32), i32 2)) #3
|
%call = tail call i32 bitcast (i32 (...)* @process to i32 (i32)*)(i32 and (i32 ptrtoint (void ()* @foo1 to i32), i32 2)) #3
|
||||||
|
@ -23,5 +23,5 @@ entry:
|
||||||
}
|
}
|
||||||
|
|
||||||
; Function Attrs: minsize optsize
|
; Function Attrs: minsize optsize
|
||||||
declare dso_local i32 @process(...) local_unnamed_addr #2
|
declare i32 @process(...) local_unnamed_addr #2
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue