Move check of command line options after command line parsing.
authorTobias Grosser <grosser@fim.uni-passau.de>
Thu, 2 Dec 2010 20:35:16 +0000 (20:35 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Thu, 2 Dec 2010 20:35:16 +0000 (20:35 +0000)
commit7593f34d67f1f88bd09960dd92041d89de85a873
tree6278aee3ac93ff7ab6bde424a14a58d8e3953e0f
parent7ece6027a9934c7282a42303e88458cfa6ad7b1e
Move check of command line options after command line parsing.

The check to not allow -analyze and -disable-output at the same time was done
before parsing the command line flags. Therefore it never triggered, and in case
both options where used opt segfaulted. Fix this by moving this check a after
command line parsing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120732 91177308-0d34-0410-b5e6-96231b3b80d8
tools/opt/opt.cpp