Don't create a (empty) output file, and don't warn about bitcode output
authorDan Gohman <gohman@apple.com>
Sun, 17 Jan 2010 17:47:24 +0000 (17:47 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 17 Jan 2010 17:47:24 +0000 (17:47 +0000)
commitb56bf581a3bd8feb3eb454b30ab171bc5131e17c
tree536446d60c4c80ad8be3ed38811de3b547646803
parent1efd4fd56b3bc21b85ab921c6f77807afc02ecb5
Don't create a (empty) output file, and don't warn about bitcode output
to a console, when --analyze is used.

Similarly, avoid creating an empty output file when --disable-output is used.

Print a warning when the -o option appears with either --analyze or
--disable-output, to indicate that the option is being ignored.

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