Make DataLayout Non-Optional in the Module
[oota-llvm.git] / examples / Kaleidoscope / Chapter5 / toy.cpp
index 6821429dc0ac61fdb97299fd2a7512f83bcb017f..e7cab0597d0e6fc3e490469bc2446fe4787ab4b1 100644 (file)
@@ -914,7 +914,6 @@ int main() {
   // Set up the optimizer pipeline.  Start with registering info about how the
   // target lays out data structures.
   TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
-  OurFPM.add(new DataLayoutPass());
   // Provide basic AliasAnalysis support for GVN.
   OurFPM.add(createBasicAliasAnalysisPass());
   // Do simple "peephole" optimizations and bit-twiddling optzns.