projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move TargetData to DataLayout.
[oota-llvm.git]
/
examples
/
OCaml-Kaleidoscope
/
Chapter6
/
toy.ml
diff --git
a/examples/OCaml-Kaleidoscope/Chapter6/toy.ml
b/examples/OCaml-Kaleidoscope/Chapter6/toy.ml
index 5f9d912499c9d3e1a8a1505386749e75d973c723..5a6bde9458cb090c2a9f0edb35ecc0c83eacc24c 100644
(file)
--- a/
examples/OCaml-Kaleidoscope/Chapter6/toy.ml
+++ b/
examples/OCaml-Kaleidoscope/Chapter6/toy.ml
@@
-27,7
+27,7
@@
let main () =
(* Set up the optimizer pipeline. Start with registering info about how the
* target lays out data structures. *)
(* Set up the optimizer pipeline. Start with registering info about how the
* target lays out data structures. *)
-
TargetData
.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
+
DataLayout
.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
(* Do simple "peephole" optimizations and bit-twiddling optzn. *)
add_instruction_combination the_fpm;
(* Do simple "peephole" optimizations and bit-twiddling optzn. *)
add_instruction_combination the_fpm;