mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +00:00
-analyze mode shouldn't output a .bc file.
llvm-svn: 29923
This commit is contained in:
parent
dda3f0344e
commit
3e408fb5a4
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user