summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-readobj/Error.cpp
diff options
context:
space:
mode:
authorStephen Tozer <stephen.tozer@sony.com>2019-04-05 16:15:50 +0000
committerStephen Tozer <stephen.tozer@sony.com>2019-04-05 16:15:50 +0000
commit681b0798dbbc6b3500c9930977ec8a274b142acb (patch)
tree09416478f4286b865120010561943098cbf97980 /llvm/tools/llvm-readobj/Error.cpp
parented7f8e6509ba6997b12281acd41fbeddc0d27216 (diff)
downloadbcm5719-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/tools/llvm-readobj/Error.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud