diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-08-27 22:40:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-08-27 22:40:26 +0000 |
| commit | dc729ee32ba93180429158ad0ab068b791f675e8 (patch) | |
| tree | 8c5f4a17e22bd7b567ea273a5a91ba98d3b395c5 /llvm | |
| parent | a4c1bc74b9773453bcb0948c91cb01d7473bd228 (diff) | |
| download | bcm5719-llvm-dc729ee32ba93180429158ad0ab068b791f675e8.tar.gz bcm5719-llvm-dc729ee32ba93180429158ad0ab068b791f675e8.zip | |
-analyze mode shouldn't output a .bc file.
llvm-svn: 29923
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/tools/opt/opt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index 4394c98917a..5c61549d75e 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -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. |

