aboutsummaryrefslogtreecommitdiffstats
path: root/test/Feature
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-06-19 00:03:46 +0000
committerChris Lattner <sabre@nondot.org>2011-06-19 00:03:46 +0000
commita53616d08be710d22fd804e90b22df023cfdc0f9 (patch)
treeaae58c7b8a23a78698bb99b0e6dc405eeb4e0dd3 /test/Feature
parentedcaca8e4177b89a180862bcf779b498e9fe2d4c (diff)
downloadexternal_llvm-a53616d08be710d22fd804e90b22df023cfdc0f9.zip
external_llvm-a53616d08be710d22fd804e90b22df023cfdc0f9.tar.gz
external_llvm-a53616d08be710d22fd804e90b22df023cfdc0f9.tar.bz2
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
Diffstat (limited to 'test/Feature')
-rw-r--r--test/Feature/forwardreftest.ll6
-rw-r--r--test/Feature/opaquetypes.ll7
-rw-r--r--test/Feature/testtype.ll4
-rw-r--r--test/Feature/weak_constant.ll2
4 files changed, 8 insertions, 11 deletions
diff --git a/test/Feature/forwardreftest.ll b/test/Feature/forwardreftest.ll
index 26d214a..6ca1be7 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 6539c1a..37fdf93 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 124aa09..c5af723 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 9025aaa..fba7f12 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 ; <i32*> [#uses=1]
@b = weak constant i32 5 ; <i32*> [#uses=1]
@c = weak constant %0 { i32 7, i32 9 } ; <%0*> [#uses=1]