Add doInitialization/doFinalization to DataLayoutPass.
[oota-llvm.git] / lib / Target / Target.cpp
index d277f82eb869bd2f983f9bca31a535e1085a4fe0..4b51b3f7eea5a24750f7233132a574f31fa5f00d 100644 (file)
@@ -49,7 +49,7 @@ LLVMTargetDataRef LLVMCreateTargetData(const char *StringRep) {
 void LLVMAddTargetData(LLVMTargetDataRef TD, LLVMPassManagerRef PM) {
   // The DataLayoutPass must now be in sync with the module. Unfortunatelly we
   // cannot enforce that from the C api.
-  unwrap(PM)->add(new DataLayoutPass(*unwrap(TD)));
+  unwrap(PM)->add(new DataLayoutPass());
 }
 
 void LLVMAddTargetLibraryInfo(LLVMTargetLibraryInfoRef TLI,