summaryrefslogtreecommitdiffstats
path: root/test/Bitcode
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-11-04 16:16:24 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-11-04 16:16:24 +0000
commite076b5338a8a004b4ea3694c469760d87194a5d7 (patch)
tree180bd12204cba93deeed15bc3715749bd554b611 /test/Bitcode
parent5c042162beb3c2dd556e00aab84c4278a69cd5b1 (diff)
downloadexternal_llvm-e076b5338a8a004b4ea3694c469760d87194a5d7.zip
external_llvm-e076b5338a8a004b4ea3694c469760d87194a5d7.tar.gz
external_llvm-e076b5338a8a004b4ea3694c469760d87194a5d7.tar.bz2
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
Diffstat (limited to 'test/Bitcode')
-rw-r--r--test/Bitcode/invalid.ll2
-rw-r--r--test/Bitcode/null-type.ll2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/Bitcode/invalid.ll b/test/Bitcode/invalid.ll
index 51d8cf2..1d4a82b 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 d01488c..a620fab 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