diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-08-30 22:54:37 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-08-30 22:54:37 +0000 |
| commit | 2292e551ed71e5864167d68097a291f85a33ed2f (patch) | |
| tree | aebe3d1fc564140aa17df62b896c87fba42f2443 /llvm/tools/analyze/analyze.cpp | |
| parent | ed39ccae8defa2660cd0cf9233528a8a1f03d027 (diff) | |
| download | bcm5719-llvm-2292e551ed71e5864167d68097a291f85a33ed2f.tar.gz bcm5719-llvm-2292e551ed71e5864167d68097a291f85a33ed2f.zip | |
- 'analyze' and 'as' now explicitly verify input because AsmParser doesn't.
llvm-svn: 3551
Diffstat (limited to 'llvm/tools/analyze/analyze.cpp')
| -rw-r--r-- | llvm/tools/analyze/analyze.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/analyze/analyze.cpp b/llvm/tools/analyze/analyze.cpp index a40b8b8d1ff..eb78d915b44 100644 --- a/llvm/tools/analyze/analyze.cpp +++ b/llvm/tools/analyze/analyze.cpp @@ -14,6 +14,7 @@ #include "llvm/PassManager.h" #include "llvm/Bytecode/Reader.h" #include "llvm/Assembly/Parser.h" +#include "llvm/Analysis/Verifier.h" #include "llvm/Support/PassNameParser.h" #include <algorithm> @@ -114,6 +115,9 @@ int main(int argc, char **argv) { // PassManager Passes; + // Make sure the input LLVM is well formed. + Passes.add(createVerifierPass()); + // Create a new optimization pass for each one specified on the command line for (unsigned i = 0; i < AnalysesList.size(); ++i) { const PassInfo *Analysis = AnalysesList[i]; |

