Make DataLayout Non-Optional in the Module
[oota-llvm.git] / examples / Kaleidoscope / Chapter8 / toy.cpp
index 1b6e5ed6b9832d074b38f0a0a74a0b098de20e3c..3a582e9d1c2fc8eab6dc10465c6f0524459d0555 100644 (file)
@@ -1460,7 +1460,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());
 #if 0
   // Provide basic AliasAnalysis support for GVN.
   OurFPM.add(createBasicAliasAnalysisPass());