diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-24 19:13:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-24 19:13:02 +0000 |
commit | d571e2aa9175ff04d04d361e984781348c452f3a (patch) | |
tree | 7a3e9428fdf19d8d5af028c3ffcd929d2e15f9bb /llvm/tools/analyze/analyze.cpp | |
parent | 42516baf76f88a8e0d82aae8c7a8a1dfb6c67133 (diff) | |
download | bcm5719-llvm-d571e2aa9175ff04d04d361e984781348c452f3a.tar.gz bcm5719-llvm-d571e2aa9175ff04d04d361e984781348c452f3a.zip |
Make sure to create a target data that matches the Module's target properties.
llvm-svn: 5904
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 83cfda2354a..1119fccfa33 100644 --- a/llvm/tools/analyze/analyze.cpp +++ b/llvm/tools/analyze/analyze.cpp @@ -15,6 +15,7 @@ #include "llvm/Bytecode/Reader.h" #include "llvm/Assembly/Parser.h" #include "llvm/Analysis/Verifier.h" +#include "llvm/Target/TargetData.h" #include "llvm/Support/PassNameParser.h" #include "Support/Timer.h" #include <algorithm> @@ -126,6 +127,9 @@ int main(int argc, char **argv) { // PassManager Passes; + // Add an appropriate TargetData instance for this module... + Passes.add(new TargetData("analyze", CurMod)); + // Make sure the input LLVM is well formed. Passes.add(createVerifierPass()); |