forked from OSchip/llvm-project
parent
ec23a95691
commit
607b8b26e9
|
@ -133,15 +133,6 @@ public:
|
||||||
/// Create a DataLayout.
|
/// Create a DataLayout.
|
||||||
const DataLayout createDataLayout() const { return DL; }
|
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.
|
/// Get the pointer size for this target.
|
||||||
///
|
///
|
||||||
/// This is the only time the DataLayout in the TargetMachine is used.
|
/// This is the only time the DataLayout in the TargetMachine is used.
|
||||||
|
|
|
@ -87,11 +87,6 @@ MachineFunction::MachineFunction(const Function *F, const TargetMachine &TM,
|
||||||
|
|
||||||
FunctionNumber = FunctionNum;
|
FunctionNumber = FunctionNum;
|
||||||
JumpTableInfo = nullptr;
|
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>();
|
PSVManager = llvm::make_unique<PseudoSourceValueManager>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue