From e076b5338a8a004b4ea3694c469760d87194a5d7 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 4 Nov 2013 16:16:24 +0000 Subject: Change BitcodeReader to use error_code instead of bool + string. In order to create an ObjectFile implementation that uses bitcode files, we need to propagate the bitcode errors to the ObjectFile interface, so we need to convert it to use the same error handling as ObjectFile: error_code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193996 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Bitcode/invalid.ll | 2 +- test/Bitcode/null-type.ll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/Bitcode/invalid.ll b/test/Bitcode/invalid.ll index 51d8cf2f9e..1d4a82bf2b 100644 --- a/test/Bitcode/invalid.ll +++ b/test/Bitcode/invalid.ll @@ -1,6 +1,6 @@ ; RUN: not llvm-dis < %s.bc 2>&1 | FileCheck %s -; CHECK: llvm-dis{{(\.EXE|\.exe)?}}: Unknown attribute kind +; CHECK: llvm-dis{{(\.EXE|\.exe)?}}: Invalid value ; invalid.ll.bc has an invalid attribute number. ; The test checks that LLVM reports the error and doesn't access freed memory diff --git a/test/Bitcode/null-type.ll b/test/Bitcode/null-type.ll index d01488c426..a620fab8cc 100644 --- a/test/Bitcode/null-type.ll +++ b/test/Bitcode/null-type.ll @@ -1,4 +1,4 @@ ; RUN: not llvm-dis < %s.bc 2>&1 | FileCheck %s ; PR8494 -; CHECK: Invalid MODULE_CODE_FUNCTION record +; CHECK: Invalid record -- cgit v1.2.3