Make DataLayout Non-Optional in the Module
[oota-llvm.git] / examples / ExceptionDemo / ExceptionDemo.cpp
index 84cff0dd4c8db99d3adcfb743347c2641f6051fa..f6fc03de912f2960a7c48f7213adadf2d821d79b 100644 (file)
@@ -1973,7 +1973,6 @@ int main(int argc, char *argv[]) {
     // Start with registering info about how the
     // target lays out data structures.
     module->setDataLayout(executionEngine->getDataLayout());
-    fpm.add(new llvm::DataLayoutPass());
 
     // Optimizations turned on
 #ifdef ADD_OPT_PASSES