From b63e4bfe73188f7d68065f5b274e169491e593d2 Mon Sep 17 00:00:00 2001 From: Mark Seaborn Date: Mon, 9 Sep 2013 10:32:47 -0700 Subject: PNaCl bitcode: Remove TYPE_CODE_POINTER entries from type table There are now no uses of pointer type IDs in PNaCl bitcode, so we can stop outputting pointer types into the type table. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3671 TEST=test/NaCl/Bitcode/*.ll Review URL: https://codereview.chromium.org/23600013 --- test/NaCl/Bitcode/no-structs.ll | 27 +++++++++++++++++---------- test/NaCl/Bitcode/switch.ll | 24 +++++++++++++++--------- 2 files changed, 32 insertions(+), 19 deletions(-) (limited to 'test/NaCl/Bitcode') diff --git a/test/NaCl/Bitcode/no-structs.ll b/test/NaCl/Bitcode/no-structs.ll index 1f9b1279fe..6ca17c0634 100644 --- a/test/NaCl/Bitcode/no-structs.ll +++ b/test/NaCl/Bitcode/no-structs.ll @@ -3,11 +3,11 @@ ; RUN: llvm-as < %s | pnacl-freeze --pnacl-version=1 \ ; RUN: | pnacl-bcanalyzer -dump-records \ -; RUN: | FileCheck %s +; RUN: | FileCheck %s -check-prefix=PF1 ; RUN: llvm-as < %s | pnacl-freeze --pnacl-version=2 \ ; RUN: | pnacl-bcanalyzer -dump-records \ -; RUN: | FileCheck %s +; RUN: | FileCheck %s -check-prefix=PF2 declare void @func() @@ -28,11 +28,18 @@ define void @CheckPtrToIntGlobal() { ; Note that neither pnacl-version defines a struct type. -; CHECK: -; CHECK-NEXT: -; CHECK-NEXT: -; CHECK-NEXT: -; CHECK-NEXT: -; CHECK-NEXT: -; CHECK-NEXT: -; CHECK-NEXT: +; PF1: +; PF1-NEXT: +; PF1-NEXT: +; PF1-NEXT: +; PF1-NEXT: +; PF1-NEXT: +; PF1-NEXT: +; PF1-NEXT: + +; PF2: +; PF2-NEXT: +; PF2-NEXT: +; PF2-NEXT: +; PF2-NEXT: +; PF2-NEXT: diff --git a/test/NaCl/Bitcode/switch.ll b/test/NaCl/Bitcode/switch.ll index f15001f504..3fd5e68483 100644 --- a/test/NaCl/Bitcode/switch.ll +++ b/test/NaCl/Bitcode/switch.ll @@ -3,11 +3,11 @@ ; RUN: llvm-as < %s | pnacl-freeze --pnacl-version=1 \ ; RUN: | pnacl-bcanalyzer -dump-records \ -; RUN: | FileCheck %s +; RUN: | FileCheck %s -check-prefix=PF1 ; RUN: llvm-as < %s | pnacl-freeze --pnacl-version=2 \ ; RUN: | pnacl-bcanalyzer -dump-records \ -; RUN: | FileCheck %s +; RUN: | FileCheck %s -check-prefix=PF2 ; Test case where we switch on a variable. define void @SwitchVariable(i32) { @@ -47,11 +47,17 @@ end: ret void } -; CHECK: -; CHECK-NEXT: -; CHECK-NEXT: -; CHECK-NEXT: -; CHECK-NEXT: -; CHECK-NEXT: -; CHECK-NEXT: +; PF1: +; PF1-NEXT: +; PF1-NEXT: +; PF1-NEXT: +; PF1-NEXT: +; PF1-NEXT: +; PF1-NEXT: +; PF2: +; PF2-NEXT: +; PF2-NEXT: +; PF2-NEXT: +; PF2-NEXT: +; PF2-NEXT: -- cgit v1.2.3-70-g09d2