summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/Chapter5
diff options
context:
space:
mode:
authorMicah Villmow <villmow@gmail.com>2012-10-08 16:37:04 +0000
committerMicah Villmow <villmow@gmail.com>2012-10-08 16:37:04 +0000
commit6bf5825b3da245596605f3918397ffc18c8d1a49 (patch)
treede5066119f2ab25f112c53c4ab3bfb17d490c50b /llvm/examples/Kaleidoscope/Chapter5
parentfb89f27a8f9db7d9665ea941670166576025f99c (diff)
downloadbcm5719-llvm-6bf5825b3da245596605f3918397ffc18c8d1a49.tar.gz
bcm5719-llvm-6bf5825b3da245596605f3918397ffc18c8d1a49.zip
Move TargetData to DataLayout.
llvm-svn: 165401
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter5')
-rw-r--r--llvm/examples/Kaleidoscope/Chapter5/toy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter5/toy.cpp b/llvm/examples/Kaleidoscope/Chapter5/toy.cpp
index 36dd760e5ff..2b0b9d54feb 100644
--- a/llvm/examples/Kaleidoscope/Chapter5/toy.cpp
+++ b/llvm/examples/Kaleidoscope/Chapter5/toy.cpp
@@ -7,7 +7,7 @@
#include "llvm/PassManager.h"
#include "llvm/Analysis/Verifier.h"
#include "llvm/Analysis/Passes.h"
-#include "llvm/Target/TargetData.h"
+#include "llvm/DataLayout.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Support/TargetSelect.h"
#include <cstdio>
@@ -829,7 +829,7 @@ int main() {
// Set up the optimizer pipeline. Start with registering info about how the
// target lays out data structures.
- OurFPM.add(new TargetData(*TheExecutionEngine->getTargetData()));
+ OurFPM.add(new DataLayout(*TheExecutionEngine->getDataLayout()));
// Provide basic AliasAnalysis support for GVN.
OurFPM.add(createBasicAliasAnalysisPass());
// Do simple "peephole" optimizations and bit-twiddling optzns.
OpenPOWER on IntegriCloud