[llvm] r245210 - Disable targetdatalayoutcheck

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 03:56:36 PDT 2015


Author: grosser
Date: Mon Aug 17 05:56:35 2015
New Revision: 245210

URL: http://llvm.org/viewvc/llvm-project?rev=245210&view=rev
Log:
Disable targetdatalayoutcheck

Modified:
    llvm/trunk/include/llvm/Target/TargetMachine.h
    llvm/trunk/lib/CodeGen/MachineFunction.cpp

Modified: llvm/trunk/include/llvm/Target/TargetMachine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetMachine.h?rev=245210&r1=245209&r2=245210&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetMachine.h (original)
+++ llvm/trunk/include/llvm/Target/TargetMachine.h Mon Aug 17 05:56:35 2015
@@ -133,15 +133,6 @@ public:
   /// Create a DataLayout.
   const DataLayout createDataLayout() const { return DL; }
 
-  /// Test if a DataLayout if compatible with the CodeGen for this target.
-  ///
-  /// The LLVM Module owns a DataLayout that is used for the target independent
-  /// optimizations and code generation. This hook provides a target specific
-  /// check on the validity of this DataLayout.
-  bool isCompatibleDataLayout(const DataLayout &Candidate) const {
-    return DL == Candidate;
-  }
-
   /// Get the pointer size for this target.
   ///
   /// This is the only time the DataLayout in the TargetMachine is used.

Modified: llvm/trunk/lib/CodeGen/MachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineFunction.cpp?rev=245210&r1=245209&r2=245210&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineFunction.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineFunction.cpp Mon Aug 17 05:56:35 2015
@@ -87,11 +87,6 @@ MachineFunction::MachineFunction(const F
 
   FunctionNumber = FunctionNum;
   JumpTableInfo = nullptr;
-
-  assert(TM.isCompatibleDataLayout(getDataLayout()) &&
-         "Can't create a MachineFunction using a Module with a "
-         "Target-incompatible DataLayout attached\n");
-
   PSVManager = llvm::make_unique<PseudoSourceValueManager>();
 }
 




More information about the llvm-commits mailing list