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 | cd7fbf2d0ffda381bf8024cd485a67b8054f6a54 (patch) | |
tree | 6af1e92f3e2f691d7112b4162f31d88f245a042e | |
parent | c74cb8698f1771603a6ab008277a407c55e47753 (diff) | |
download | external_llvm-cd7fbf2d0ffda381bf8024cd485a67b8054f6a54.zip external_llvm-cd7fbf2d0ffda381bf8024cd485a67b8054f6a54.tar.gz external_llvm-cd7fbf2d0ffda381bf8024cd485a67b8054f6a54.tar.bz2 |
- 'analyze' and 'as' now explicitly verify input because AsmParser doesn't.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3551 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/analyze/analyze.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp index a40b8b8..eb78d91 100644 --- a/tools/analyze/analyze.cpp +++ b/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]; |