Make DataLayout Non-Optional in the Module
[oota-llvm.git] / examples / Kaleidoscope / Chapter6 / toy.cpp
index d6b9661d21f40c700e9f0a28b669d7db70edeb79..eda39e1b290435a7a21e5d739026a81fc4bfd0a8 100644 (file)
@@ -1035,7 +1035,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.