mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
stub out a new target hook, need some refactoring before I can
implement it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94521 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e35df92eca
commit
13e97a29d9
@ -772,6 +772,13 @@ public:
|
|||||||
virtual SDValue getPICJumpTableRelocBase(SDValue Table,
|
virtual SDValue getPICJumpTableRelocBase(SDValue Table,
|
||||||
SelectionDAG &DAG) const;
|
SelectionDAG &DAG) const;
|
||||||
|
|
||||||
|
/// getPICJumpTableRelocBaseExpr - This returns the relocation base for the
|
||||||
|
/// given PIC jumptable, the same as getPICJumpTableRelocBase, but as an
|
||||||
|
/// MCExpr.
|
||||||
|
virtual const MCExpr *
|
||||||
|
getPICJumpTableRelocBaseExpr(const MachineJumpTableInfo *MJTI,
|
||||||
|
unsigned JTI, MCContext &Ctx) const;
|
||||||
|
|
||||||
/// isOffsetFoldingLegal - Return true if folding a constant offset
|
/// isOffsetFoldingLegal - Return true if folding a constant offset
|
||||||
/// with the given GlobalAddress is legal. It is frequently not legal in
|
/// with the given GlobalAddress is legal. It is frequently not legal in
|
||||||
/// PIC relocation models.
|
/// PIC relocation models.
|
||||||
|
@ -817,6 +817,17 @@ SDValue TargetLowering::getPICJumpTableRelocBase(SDValue Table,
|
|||||||
return Table;
|
return Table;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// getPICJumpTableRelocBaseExpr - This returns the relocation base for the
|
||||||
|
/// given PIC jumptable, the same as getPICJumpTableRelocBase, but as an
|
||||||
|
/// MCExpr.
|
||||||
|
const MCExpr *
|
||||||
|
TargetLowering::getPICJumpTableRelocBaseExpr(const MachineJumpTableInfo *MJTI,
|
||||||
|
unsigned JTI,
|
||||||
|
MCContext &Ctx) const {
|
||||||
|
assert(0 && "FIXME: IMPLEMENT ME");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
TargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
|
TargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
|
||||||
// Assume that everything is safe in static mode.
|
// Assume that everything is safe in static mode.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user