Changes in directory llvm/lib/ExecutionEngine/JIT:
JITEmitter.cpp updated: 1.90 -> 1.91 --- Log message: Change the BasicBlockAddrs map to be a vector, indexed by MBB number. --- Diffs of the changes: (+3 -3) JITEmitter.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp diff -u llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.90 llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.91 --- llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.90 Tue May 2 19:13:06 2006 +++ llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp Tue May 2 19:28:15 2006 @@ -392,7 +392,7 @@ void emitConstantPool(MachineConstantPool *MCP); void initJumpTableInfo(MachineJumpTableInfo *MJTI); virtual void emitJumpTableInfo(MachineJumpTableInfo *MJTI, - std::map<MachineBasicBlock*,uint64_t> &MBBM); + std::vector<uint64_t> &MBBM); virtual void startFunctionStub(unsigned StubSize); virtual void* finishFunctionStub(const Function *F); @@ -560,7 +560,7 @@ } void JITEmitter::emitJumpTableInfo(MachineJumpTableInfo *MJTI, - std::map<MachineBasicBlock*,uint64_t> &MBBM){ + std::vector<uint64_t> &MBBM) { const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables(); if (JT.empty() || JumpTableBase == 0) return; @@ -576,7 +576,7 @@ // Store the address of the basic block for this jump table slot in the // memory we allocated for the jump table in 'initJumpTableInfo' for (unsigned mi = 0, me = MBBs.size(); mi != me; ++mi) - *SlotPtr++ = (intptr_t)MBBM[MBBs[mi]]; + *SlotPtr++ = (intptr_t)MBBM[MBBs[mi]->getNumber()]; } } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits