diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-03 17:10:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-03 17:10:41 +0000 |
commit | b4432f3d4754e16c918428d34a9d8ec18ab79204 (patch) | |
tree | 3f8e76b0b2b61f8cd9317f1afd47cba1dc568985 /lib/CodeGen/ELFWriter.cpp | |
parent | 5c488182daaf8e11789bd0a16528900ae4042dc2 (diff) |
Suck block address tracking out of targets into the JIT Emitter. This
simplifies the MachineCodeEmitter interface just a little bit and makes
BasicBlocks work like constant pools and jump tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ELFWriter.cpp')
-rw-r--r-- | lib/CodeGen/ELFWriter.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/CodeGen/ELFWriter.cpp b/lib/CodeGen/ELFWriter.cpp index 029cfe2b02..bf3c5882c4 100644 --- a/lib/CodeGen/ELFWriter.cpp +++ b/lib/CodeGen/ELFWriter.cpp @@ -61,21 +61,24 @@ namespace llvm { void addRelocation(const MachineRelocation &MR) { assert(0 && "relo not handled yet!"); } - virtual uint64_t getConstantPoolEntryAddress(unsigned Index) { + + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) { + } + + virtual intptr_t getConstantPoolEntryAddress(unsigned Index) const { assert(0 && "CP not implementated yet!"); return 0; } - virtual uint64_t getJumpTableEntryAddress(unsigned Index) { + virtual intptr_t getJumpTableEntryAddress(unsigned Index) const { assert(0 && "JT not implementated yet!"); return 0; } - - virtual void emitJumpTableInfo(MachineJumpTableInfo *MJTI, - std::vector<uint64_t> &MBBM) { + + virtual intptr_t getMachineBasicBlockAddress(MachineBasicBlock *MBB) const { assert(0 && "JT not implementated yet!"); + return 0; } - /// JIT SPECIFIC FUNCTIONS - DO NOT IMPLEMENT THESE HERE! void startFunctionStub(unsigned StubSize) { assert(0 && "JIT specific function called!"); |