diff options
author | Micah Villmow <villmow@gmail.com> | 2012-10-08 16:39:34 +0000 |
---|---|---|
committer | Micah Villmow <villmow@gmail.com> | 2012-10-08 16:39:34 +0000 |
commit | 9cfc13d46c60643867e1b72f6539dd8400be52df (patch) | |
tree | b51dbc67f55236808bfc55f4137f973eef5f8687 /llvm/docs/tutorial/LangImpl7.html | |
parent | cdfe20b97f55f4f493ebd6f15932780ae0789fe4 (diff) | |
download | bcm5719-llvm-9cfc13d46c60643867e1b72f6539dd8400be52df.tar.gz bcm5719-llvm-9cfc13d46c60643867e1b72f6539dd8400be52df.zip |
Move TargetData to DataLayout.
llvm-svn: 165403
Diffstat (limited to 'llvm/docs/tutorial/LangImpl7.html')
-rw-r--r-- | llvm/docs/tutorial/LangImpl7.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/tutorial/LangImpl7.html b/llvm/docs/tutorial/LangImpl7.html index 08c0c716b6f..8fa99b19039 100644 --- a/llvm/docs/tutorial/LangImpl7.html +++ b/llvm/docs/tutorial/LangImpl7.html @@ -524,7 +524,7 @@ good codegen once again:</p> <pre> // 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())); <b>// Promote allocas to registers. OurFPM.add(createPromoteMemoryToRegisterPass());</b> // Do simple "peephole" optimizations and bit-twiddling optzns. @@ -1008,7 +1008,7 @@ clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 #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> @@ -2113,7 +2113,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()); // Promote allocas to registers. |