Use std::bitset for SubtargetFeatures
[oota-llvm.git] / lib / Target / TargetMachineC.cpp
index c7838a9809998ced2cb55b5ec58b4df0c6b4c9f6..236cb1bed963e3c91b8ee50aa97206c8148bcaf0 100644 (file)
@@ -198,8 +198,7 @@ static LLVMBool LLVMTargetMachineEmit(LLVMTargetMachineRef T, LLVMModuleRef M,
     *ErrorMessage = strdup(error.c_str());
     return true;
   }
-  Mod->setDataLayout(td);
-  pass.add(new DataLayoutPass());
+  Mod->setDataLayout(*td);
 
   TargetMachine::CodeGenFileType ft;
   switch (codegen) {