diff options
author | Micah Villmow <villmow@gmail.com> | 2012-10-08 16:21:06 +0000 |
---|---|---|
committer | Micah Villmow <villmow@gmail.com> | 2012-10-08 16:21:06 +0000 |
commit | cb7a4c6c52563589ef7c832bd4c87390b3a3a919 (patch) | |
tree | 1e22135b8938a0c8942fbe9543a0c2e353fb96d7 /lib/Module/Optimize.cpp | |
parent | 215c1587aab5fa94fd805fe8e0b5fbacc51f1c8e (diff) | |
download | klee-cb7a4c6c52563589ef7c832bd4c87390b3a3a919.tar.gz |
Move TargetData to DataLayout.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@165394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Module/Optimize.cpp')
-rw-r--r-- | lib/Module/Optimize.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Module/Optimize.cpp b/lib/Module/Optimize.cpp index d988a74c..fc37c1a9 100644 --- a/lib/Module/Optimize.cpp +++ b/lib/Module/Optimize.cpp @@ -27,7 +27,7 @@ #else #include "llvm/Support/DynamicLibrary.h" #endif -#include "llvm/Target/TargetData.h" +#include "llvm/Target/DataLayout.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Transforms/IPO.h" #include "llvm/Transforms/Scalar.h" @@ -178,8 +178,8 @@ void Optimize(Module* M) { if (VerifyEach) Passes.add(createVerifierPass()); - // Add an appropriate TargetData instance for this module... - addPass(Passes, new TargetData(M)); + // Add an appropriate DataLayout instance for this module... + addPass(Passes, new DataLayout(M)); // DWD - Run the opt standard pass list as well. AddStandardCompilePasses(Passes); |