summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-readobj/wasm-invalid.test
diff options
context:
space:
mode:
authorStephen Tozer <stephen.tozer@sony.com>2019-04-15 11:17:48 +0000
committerStephen Tozer <stephen.tozer@sony.com>2019-04-15 11:17:48 +0000
commit19bb1d5739b4d0a4921717609e8615d20097b96e (patch)
tree9f36b61f8bd02ff12fd50e3efe47a895470a6006 /llvm/test/tools/llvm-readobj/wasm-invalid.test
parentcdf126ebec185d135dfb99cb907cf4f40583e3dc (diff)
downloadbcm5719-llvm-19bb1d5739b4d0a4921717609e8615d20097b96e.tar.gz
bcm5719-llvm-19bb1d5739b4d0a4921717609e8615d20097b96e.zip
[llvm-readobj] Reapply: Improve error message for --string-dump
This is a resubmission of a previous patch that caused test failures, with the fixes for the relevant tests included. Fixes bug 40630: https://bugs.llvm.org/show_bug.cgi?id=40630 This patch changes the error message when the section specified by --string-dump cannot be found by including the name of the section in the error message and changing the prefix text to not imply that the file itself was invalid. As part of this change some uses of std::error_code have been replaced with the llvm Error class to better encapsulate the error info (rather than passing File strings around), and the WithColor class replaces string literal error prefixes. llvm-svn: 358395
Diffstat (limited to 'llvm/test/tools/llvm-readobj/wasm-invalid.test')
-rw-r--r--llvm/test/tools/llvm-readobj/wasm-invalid.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-readobj/wasm-invalid.test b/llvm/test/tools/llvm-readobj/wasm-invalid.test
index d500d582ca0..e0e2e5d9044 100644
--- a/llvm/test/tools/llvm-readobj/wasm-invalid.test
+++ b/llvm/test/tools/llvm-readobj/wasm-invalid.test
@@ -4,4 +4,4 @@
FileHeader:
Version: 0x0000000c
-# CHECK: Error reading file: <stdin>: Bad version number
+# CHECK: error: '<stdin>': Bad version number
OpenPOWER on IntegriCloud