diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-08 18:03:05 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-08 18:03:05 +0000 |
commit | 386e01e8796501bc40f251fe436e67d429c55b7a (patch) | |
tree | dc4cbb0bd58f970cee5c3eeebafec2d0cb432b53 /llvm/test | |
parent | a1de6fc575a18f21756dda5beb1f145dd1a5787e (diff) | |
download | bcm5719-llvm-386e01e8796501bc40f251fe436e67d429c55b7a.tar.gz bcm5719-llvm-386e01e8796501bc40f251fe436e67d429c55b7a.zip |
Print empty structs as {} rather than { }.
llvm-svn: 100787
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/FrontendC/2007-05-16-EmptyStruct.c | 2 | ||||
-rw-r--r-- | llvm/test/Transforms/InstCombine/invariant.ll | 6 | ||||
-rw-r--r-- | llvm/test/Transforms/SCCP/ipsccp-basic.ll | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/FrontendC/2007-05-16-EmptyStruct.c b/llvm/test/FrontendC/2007-05-16-EmptyStruct.c index 748aa98351d..23c0b1d6a3f 100644 --- a/llvm/test/FrontendC/2007-05-16-EmptyStruct.c +++ b/llvm/test/FrontendC/2007-05-16-EmptyStruct.c @@ -1,5 +1,5 @@ // PR 1417 -// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep "struct.anon = type \{ \}" +// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep "struct.anon = type \{\}" struct { } *X; diff --git a/llvm/test/Transforms/InstCombine/invariant.ll b/llvm/test/Transforms/InstCombine/invariant.ll index c67ad331959..38323802269 100644 --- a/llvm/test/Transforms/InstCombine/invariant.ll +++ b/llvm/test/Transforms/InstCombine/invariant.ll @@ -3,13 +3,13 @@ declare void @g(i8*) -declare { }* @llvm.invariant.start(i64, i8* nocapture) nounwind readonly +declare {}* @llvm.invariant.start(i64, i8* nocapture) nounwind readonly define i8 @f() { %a = alloca i8 ; <i8*> [#uses=4] store i8 0, i8* %a - %i = call { }* @llvm.invariant.start(i64 1, i8* %a) ; <{ }*> [#uses=0] - ; CHECK: call { }* @llvm.invariant.start + %i = call {}* @llvm.invariant.start(i64 1, i8* %a) ; <{}*> [#uses=0] + ; CHECK: call {}* @llvm.invariant.start call void @g(i8* %a) %r = load i8* %a ; <i8> [#uses=1] ret i8 %r diff --git a/llvm/test/Transforms/SCCP/ipsccp-basic.ll b/llvm/test/Transforms/SCCP/ipsccp-basic.ll index e3699209a35..a3c7637f986 100644 --- a/llvm/test/Transforms/SCCP/ipsccp-basic.ll +++ b/llvm/test/Transforms/SCCP/ipsccp-basic.ll @@ -188,7 +188,7 @@ define void @test8b(i32* %P) { %X = call {} @test8a(i32 5, i32* %P) ret void ; CHECK: define void @test8b -; CHECK-NEXT: call { } @test8a +; CHECK-NEXT: call {} @test8a ; CHECK-NEXT: ret void } |