mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
-analyze mode shouldn't output a .bc file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29923 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
43d64b8526
commit
3b2493e2a1
@ -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