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:
Evan Cheng
2006-07-27 18:21:10 +00:00
parent 16620fcbfd
commit f141cc46fa
12 changed files with 29 additions and 79 deletions

View File

@@ -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