-analyze mode shouldn't output a .bc file.

llvm-svn: 29923
This commit is contained in:
Chris Lattner 2006-08-27 22:40:26 +00:00
parent dda3f0344e
commit 3e408fb5a4

View File

@ -30,7 +30,6 @@
#include <fstream>
#include <memory>
#include <algorithm>
using namespace llvm;
// The OptimizationList is automatically populated with registered Passes by the
@ -250,7 +249,7 @@ int main(int argc, char **argv) {
Passes.add(createVerifierPass());
// Write bytecode out to disk or cout as the last step...
if (!NoOutput)
if (!NoOutput && !AnalyzeOnly)
Passes.add(new WriteBytecodePass(Out, Out != &std::cout));
// Now that we have all of the passes ready, run them.