diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2019-04-05 16:15:50 +0000 |
---|---|---|
committer | Stephen Tozer <stephen.tozer@sony.com> | 2019-04-05 16:15:50 +0000 |
commit | 681b0798dbbc6b3500c9930977ec8a274b142acb (patch) | |
tree | 09416478f4286b865120010561943098cbf97980 /llvm/test/tools/llvm-readobj/codeview-merging-cycle.test | |
parent | ed7f8e6509ba6997b12281acd41fbeddc0d27216 (diff) | |
download | bcm5719-llvm-681b0798dbbc6b3500c9930977ec8a274b142acb.tar.gz bcm5719-llvm-681b0798dbbc6b3500c9930977ec8a274b142acb.zip |
[llvm-readobj] Improve error message for --string-dump
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.
Differential Revision: https://reviews.llvm.org/D59946
llvm-svn: 357772
Diffstat (limited to 'llvm/test/tools/llvm-readobj/codeview-merging-cycle.test')
-rw-r--r-- | llvm/test/tools/llvm-readobj/codeview-merging-cycle.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-readobj/codeview-merging-cycle.test b/llvm/test/tools/llvm-readobj/codeview-merging-cycle.test index f597ad6f52f..4d612e8314d 100644 --- a/llvm/test/tools/llvm-readobj/codeview-merging-cycle.test +++ b/llvm/test/tools/llvm-readobj/codeview-merging-cycle.test @@ -1,6 +1,6 @@ ; RUN: not llvm-readobj -codeview-merged-types %S/Inputs/codeview-cycle.obj 2>&1 | FileCheck %s -; CHECK: Error{{.*}} Input type graph contains cycles +; CHECK: error{{.*}} Input type graph contains cycles ; To reproduce codeview-cycle.obj: ; $ cat codeview-cycle.asm |