OSDN Git Service

[llvm-objdump] Move --start-address >= --stop-address check out of the
authorYuanfang Chen <yuanfang.chen@sony.com>
Sat, 22 Jun 2019 00:22:57 +0000 (00:22 +0000)
committerYuanfang Chen <yuanfang.chen@sony.com>
Sat, 22 Jun 2019 00:22:57 +0000 (00:22 +0000)
commitd142165668c126688c6b3253110e418c795a705d
tree59b9f0167820650da752584f67d4d848b343d425
parent51268ecd166a075d07bf18c72ff75760cd597f36
[llvm-objdump] Move --start-address >= --stop-address check out of the
-d code.

Summary:
Move it into `main` function so the checking is effective for all actions
user may do with llvm-objdump; notably, -r and -s in addition to existing -d.

Match GNU behavior.

Reviewers: jhenderson, grimar, MaskRay, rupprecht

Subscribers: llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364118 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/X86/start-stop-address.test
tools/llvm-objdump/llvm-objdump.cpp