forked from OSchip/llvm-project
[TargetLowering] Move TargetLoweringBase::isJumpTableRelative() implementation into TargetLoweringBase.cpp. NFC.
This will help with reducing header dependencies in TargetLowering.h in a future patch.
This commit is contained in:
parent
0161874c04
commit
d4c0a082a4
|
@ -1651,9 +1651,7 @@ public:
|
|||
/// Zero if no limit.
|
||||
unsigned getMaximumJumpTableSize() const;
|
||||
|
||||
virtual bool isJumpTableRelative() const {
|
||||
return TM.isPositionIndependent();
|
||||
}
|
||||
virtual bool isJumpTableRelative() const;
|
||||
|
||||
/// If a physical register, this specifies the register that
|
||||
/// llvm.savestack/llvm.restorestack should save and restore.
|
||||
|
|
|
@ -1834,6 +1834,10 @@ void TargetLoweringBase::setMaximumJumpTableSize(unsigned Val) {
|
|||
MaximumJumpTableSize = Val;
|
||||
}
|
||||
|
||||
bool TargetLoweringBase::isJumpTableRelative() const {
|
||||
return getTargetMachine().isPositionIndependent();
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Reciprocal Estimates
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue