diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-04 16:16:24 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-04 16:16:24 +0000 |
commit | e076b5338a8a004b4ea3694c469760d87194a5d7 (patch) | |
tree | 180bd12204cba93deeed15bc3715749bd554b611 /test | |
parent | 5c042162beb3c2dd556e00aab84c4278a69cd5b1 (diff) | |
download | llvm-e076b5338a8a004b4ea3694c469760d87194a5d7.tar.gz llvm-e076b5338a8a004b4ea3694c469760d87194a5d7.tar.bz2 llvm-e076b5338a8a004b4ea3694c469760d87194a5d7.tar.xz |
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')
-rw-r--r-- | test/Bitcode/invalid.ll | 2 | ||||
-rw-r--r-- | test/Bitcode/null-type.ll | 2 |
2 files changed, 2 insertions, 2 deletions
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 |