[llvm-objdump] Emit warning if --start-address/--stop-address specify range outside...
authorYuanfang Chen <yuanfang.chen@sony.com>
Wed, 24 Jul 2019 16:55:30 +0000 (16:55 +0000)
committerYuanfang Chen <yuanfang.chen@sony.com>
Wed, 24 Jul 2019 16:55:30 +0000 (16:55 +0000)
commitfac3900c512023b8befc4ba7ffb72e59f2f94728
treef0ea68948bab5297893bf44b2579f2831710ced8
parent3f01c7197f065d34c1d5e166e47193a6b39c5fbd
[llvm-objdump] Emit warning if --start-address/--stop-address specify range outside file's address range.

NB: the warning is about the input file itself regardless of the options used
such as `-r`, `-s` etc..

https://bugs.llvm.org/show_bug.cgi?id=41911

Reviewers: jhenderson, grimar, MaskRay, rupprecht

Reviewed by: MaskRay, jhenderson

Differential Revision: https://reviews.llvm.org/D64779

llvm-svn: 366923
llvm/test/tools/llvm-objdump/warn-on-out-of-range-start-stop-address.test [new file with mode: 0644]
llvm/tools/llvm-objdump/llvm-objdump.cpp