mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Resolve BB references with relocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29351 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -83,26 +83,12 @@ namespace llvm {
|
||||
assert(NumRelocs == 0 && "This target does not have relocations!");
|
||||
}
|
||||
|
||||
/// resolveBBRefs - Resolve branches to BasicBlocks for the JIT emitted
|
||||
/// function.
|
||||
virtual void resolveBBRefs(MachineCodeEmitter &MCE) {}
|
||||
|
||||
/// addBBRef - Add a BasicBlock reference to be resolved after the function
|
||||
/// is emitted.
|
||||
void addBBRef(MachineBasicBlock *BB, intptr_t PC) {
|
||||
BBRefs.push_back(std::make_pair(BB, PC));
|
||||
}
|
||||
|
||||
/// needsGOT - Allows a target to specify that it would like the
|
||||
// JIT to manage a GOT for it.
|
||||
bool needsGOT() const { return useGOT; }
|
||||
|
||||
protected:
|
||||
bool useGOT;
|
||||
|
||||
// Tracks which instruction references which BasicBlock
|
||||
std::vector<std::pair<MachineBasicBlock*, intptr_t> > BBRefs;
|
||||
|
||||
};
|
||||
} // End llvm namespace
|
||||
|
||||
|
Reference in New Issue
Block a user