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 | 48da4f4691970f03d34ec84dbf58c22d978a07c7 (patch) | |
tree | cfe6c4c0a0d2bec97ed6c0e5d10bccab7ddbce01 /llvm/test/Bitcode | |
parent | e0ccdb1a2806c75df2dcbfd35ab7700623147cb9 (diff) | |
download | bcm5719-llvm-48da4f4691970f03d34ec84dbf58c22d978a07c7.tar.gz bcm5719-llvm-48da4f4691970f03d34ec84dbf58c22d978a07c7.zip |
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.
llvm-svn: 193996
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/invalid.ll | 2 | ||||
-rw-r--r-- | llvm/test/Bitcode/null-type.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Bitcode/invalid.ll b/llvm/test/Bitcode/invalid.ll index 51d8cf2f9e1..1d4a82bf2b6 100644 --- a/llvm/test/Bitcode/invalid.ll +++ b/llvm/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/llvm/test/Bitcode/null-type.ll b/llvm/test/Bitcode/null-type.ll index d01488c4263..a620fab8cc3 100644 --- a/llvm/test/Bitcode/null-type.ll +++ b/llvm/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 |