summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/ArgumentPromotion
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
commit90bc19cd914c9870c1d1701b3a3e290b135c63b6 (patch)
tree7736dc6d4af8aa2de18f78a625376295275cbd6a /llvm/test/Transforms/ArgumentPromotion
parent8e60d4d240ebf86f8cc62d9a638f816ac255b875 (diff)
downloadbcm5719-llvm-90bc19cd914c9870c1d1701b3a3e290b135c63b6.tar.gz
bcm5719-llvm-90bc19cd914c9870c1d1701b3a3e290b135c63b6.zip
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 } llvm-svn: 175605
Diffstat (limited to 'llvm/test/Transforms/ArgumentPromotion')
-rw-r--r--llvm/test/Transforms/ArgumentPromotion/2008-02-01-ReturnAttrs.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/test/Transforms/ArgumentPromotion/2008-02-01-ReturnAttrs.ll b/llvm/test/Transforms/ArgumentPromotion/2008-02-01-ReturnAttrs.ll
index d81c8bd3fd6..2387a10daf7 100644
--- a/llvm/test/Transforms/ArgumentPromotion/2008-02-01-ReturnAttrs.ll
+++ b/llvm/test/Transforms/ArgumentPromotion/2008-02-01-ReturnAttrs.ll
@@ -1,6 +1,6 @@
; RUN: opt < %s -argpromotion -S | FileCheck %s
-; CHECK: define internal i32 @deref(i32 %x.val) nounwind {
+; CHECK: define internal i32 @deref(i32 %x.val) #0 {
define internal i32 @deref(i32* %x) nounwind {
entry:
%tmp2 = load i32* %x, align 4
@@ -15,3 +15,5 @@ entry:
%tmp1 = call i32 @deref( i32* %x_addr ) nounwind
ret i32 %tmp1
}
+
+; CHECK: attributes #0 = { nounwind }
OpenPOWER on IntegriCloud