Changes in directory llvm/lib/CodeGen:
ELFWriter.cpp updated: 1.21 -> 1.22 --- Log message: Several related changes: 1. Change several methods in the MachineCodeEmitter class to be pure virtual. 2. Suck emitConstantPool/initJumpTableInfo into startFunction, removing them from the MachineCodeEmitter interface, and reducing the amount of target- specific code. 3. Change the JITEmitter so that it allocates constantpools and jump tables *right* next to the functions that they belong to, instead of in a separate pool of memory. This makes all memory for a function be contiguous, and means the JITEmitter only tracks one block of memory now. --- Diffs of the changes: (+6 -4) ELFWriter.cpp | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) Index: llvm/lib/CodeGen/ELFWriter.cpp diff -u llvm/lib/CodeGen/ELFWriter.cpp:1.21 llvm/lib/CodeGen/ELFWriter.cpp:1.22 --- llvm/lib/CodeGen/ELFWriter.cpp:1.21 Tue May 2 16:57:51 2006 +++ llvm/lib/CodeGen/ELFWriter.cpp Tue May 2 18:22:24 2006 @@ -58,10 +58,6 @@ void startFunction(MachineFunction &F); bool finishFunction(MachineFunction &F); - void emitConstantPool(MachineConstantPool *MCP) { - if (MCP->isEmpty()) return; - assert(0 && "unimp"); - } void addRelocation(const MachineRelocation &MR) { assert(0 && "relo not handled yet!"); } @@ -73,6 +69,12 @@ assert(0 && "JT not implementated yet!"); return 0; } + + virtual void emitJumpTableInfo(MachineJumpTableInfo *MJTI, + std::map<MachineBasicBlock*,uint64_t> &MBBM){ + assert(0 && "JT not implementated yet!"); + } + /// JIT SPECIFIC FUNCTIONS - DO NOT IMPLEMENT THESE HERE! void startFunctionStub(unsigned StubSize) { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits