From a53616d08be710d22fd804e90b22df023cfdc0f9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 19 Jun 2011 00:03:46 +0000 Subject: Remove support for parsing the "type i32" syntax for defining a numbered top level type without a specified number. This syntax isn't documented and blocks forward progress. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133371 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Feature/forwardreftest.ll | 6 +++--- test/Feature/opaquetypes.ll | 7 ++----- test/Feature/testtype.ll | 4 ++-- test/Feature/weak_constant.ll | 2 +- 4 files changed, 8 insertions(+), 11 deletions(-) (limited to 'test/Feature') diff --git a/test/Feature/forwardreftest.ll b/test/Feature/forwardreftest.ll index 26d214ae88..6ca1be79e4 100644 --- a/test/Feature/forwardreftest.ll +++ b/test/Feature/forwardreftest.ll @@ -4,9 +4,9 @@ %myty = type i32 %myfn = type float (i32,double,i32,i16) -type i32(%myfn*) -type i32(i32) -type i32(i32(i32)*) +%0 = type i32(%myfn*) +%1 = type i32(i32) +%2 = type i32(i32(i32)*) %thisfuncty = type i32 (i32) * diff --git a/test/Feature/opaquetypes.ll b/test/Feature/opaquetypes.ll index 6539c1a6e1..37fdf937f6 100644 --- a/test/Feature/opaquetypes.ll +++ b/test/Feature/opaquetypes.ll @@ -16,13 +16,10 @@ %AAA = type { \2*, {\2*}, [12x{\2*}], {[1x{\2*}]} } ; Test numbered types -type %CCC -type %BBB +%0 = type %CCC +%1 = type %BBB %Composite = type { %0, %1 } -; Test simple opaque type resolution... -%intty = type i32 - ; Perform a simple forward reference... %ty1 = type { %ty2, i32 } %ty2 = type float diff --git a/test/Feature/testtype.ll b/test/Feature/testtype.ll index 124aa090ec..c5af72353a 100644 --- a/test/Feature/testtype.ll +++ b/test/Feature/testtype.ll @@ -11,8 +11,8 @@ %fwd = type %fwdref* ; same as above with unnamed types -type { %1* } -type %0* +%0 = type { %1* } +%1 = type %0* %test = type %1 %test2 = type [2 x i32] diff --git a/test/Feature/weak_constant.ll b/test/Feature/weak_constant.ll index 9025aaac79..fba7f12e1d 100644 --- a/test/Feature/weak_constant.ll +++ b/test/Feature/weak_constant.ll @@ -4,7 +4,7 @@ ; RUN: grep 7 %t | count 1 ; RUN: grep 9 %t | count 1 - type { i32, i32 } ; type %0 + %0 = type { i32, i32 } ; type %0 @a = weak constant i32 undef ; [#uses=1] @b = weak constant i32 5 ; [#uses=1] @c = weak constant %0 { i32 7, i32 9 } ; <%0*> [#uses=1] -- cgit v1.2.3