From a6bf06e32a23367bbc5b4029fa1c973d335683df Mon Sep 17 00:00:00 2001 From: Mark Seaborn Date: Thu, 29 Aug 2013 12:34:39 -0700 Subject: PNaCl bitcode: Remove handling of named struct types Named struct types should not appear in LLVM IR that passes the PNaCl ABI verifier. Remove the test struct-types.ll because it no longer passes. Handling of TYPE_CODE_STRUCT_ANON must remain for now until this issue is fixed: https://code.google.com/p/nativeclient/issues/detail?id=3648 BUG=https://code.google.com/p/nativeclient/issues/detail?id=3590 TEST=PNaCl toolchain trybots Review URL: https://codereview.chromium.org/23490018 --- test/NaCl/Bitcode/struct-types.ll | 79 --------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 test/NaCl/Bitcode/struct-types.ll (limited to 'test') diff --git a/test/NaCl/Bitcode/struct-types.ll b/test/NaCl/Bitcode/struct-types.ll deleted file mode 100644 index b2f7dc62a8..0000000000 --- a/test/NaCl/Bitcode/struct-types.ll +++ /dev/null @@ -1,79 +0,0 @@ -; Checks if llvm bitcode defines a struct type before the pointer type, -; even if the struct definintion appears after the pointer type, while -; pnacl bitcode moves the pointer before the struct. -; RUN: llvm-as < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=LLVM -; RUN: llvm-as < %s | pnacl-freeze | pnacl-bcanalyzer -dump-records \ -; RUN: | FileCheck %s -check-prefix=PNACL - -%typeB = type { i8, %typeA, i32, %typeA } -%typeA = type { i16 } - -define %typeB* @foo(%typeB* %a) { - ret %typeB* %a -} - -define %typeB* @bar(%typeB* %b) { - ret %typeB* %b -} - -define i16 @bam(i16 %a) { - ret i16 %a -} - -; Show the ordering llvm uses to order types, which is to expand subtypes -; (including accross pointers) before the type. Expands types for functions -; in order: @foo, @bar, @bam. -; LLVM: -; i8 -; LLVM: -; i16 -; LLVM: -; %typeA = type { i16 } -; LLVM: -; LLVM: -; i32 -; LLVM: -; %typeB = type { i8, %typeA, i32, %typeA } -; LLVM: -; LLVM: -; %typeB* -; LLVM: -; %typeB* (%typeB*) -; LLVM: -; %typeB* (%typeB*)* -; LLVM: -; i16 (i16) -; LLVM: -; i16 (i16)* -; LLVM: -; type of instruction "RET" -; LLVM: -; LLVM: - -; Show the ordering pnacl-freeze uses to order types. -; PNACL: -; %typeB* -; PNACL: -; i16 -; PNACL: -; type of instruction "RET" -; PNACL: -; %typeA = type { i16 } -; PNACL: -; PNACL: -; %typeB* (%typeB*) -; PNACL: -; %typeB* (%typeB*)* -; PNACL: -; i8 -; PNACL: -; i32 -; PNACL: -; %typeB = type { i8, %typeA, i32, %typeA } -; PNACL: -; PNACL: -; i16 (i16) -; PNACL: -; i16 (i16)* -; PNACL: -; PNACL: -- cgit v1.2.3-18-g5258