aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/DeadArgElim/2007-12-20-ParamAttrs.ll
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-20 07:21:42 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-20 07:21:42 +0000
commit7ab6c76ad1cbf36284ca5b6bd5ee33c625fe3e60 (patch)
tree3cc081ac6ea575accea7f12c2353aa175dfd5025 /test/Transforms/DeadArgElim/2007-12-20-ParamAttrs.ll
parent9030fc22dd73684901ecb749c9688e289bd1a777 (diff)
downloadexternal_llvm-7ab6c76ad1cbf36284ca5b6bd5ee33c625fe3e60.zip
external_llvm-7ab6c76ad1cbf36284ca5b6bd5ee33c625fe3e60.tar.gz
external_llvm-7ab6c76ad1cbf36284ca5b6bd5ee33c625fe3e60.tar.bz2
Modify the LLVM assembly output so that it uses references to represent function attributes.
This makes the LLVM assembly look better. E.g.: define void @foo() #0 { ret void } attributes #0 = { nounwind noinline ssp } git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/DeadArgElim/2007-12-20-ParamAttrs.ll')
-rw-r--r--test/Transforms/DeadArgElim/2007-12-20-ParamAttrs.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Transforms/DeadArgElim/2007-12-20-ParamAttrs.ll b/test/Transforms/DeadArgElim/2007-12-20-ParamAttrs.ll
index 20b5da5..72a269b 100644
--- a/test/Transforms/DeadArgElim/2007-12-20-ParamAttrs.ll
+++ b/test/Transforms/DeadArgElim/2007-12-20-ParamAttrs.ll
@@ -4,7 +4,7 @@
@g = global i8 0
-; CHECK: define internal void @foo(i8 signext %y) nounwind
+; CHECK: define internal void @foo(i8 signext %y) #0
define internal zeroext i8 @foo(i8* inreg %p, i8 signext %y, ... ) nounwind {
store i8 %y, i8* @g
@@ -16,3 +16,5 @@ define i32 @bar() {
%A = call zeroext i8(i8*, i8, ...)* @foo(i8* inreg null, i8 signext 1, %struct* byval null ) nounwind
ret i32 0
}
+
+; CHECK: attributes #0 = { nounwind }