Displaying 1 result from an estimated 1 matches for "transblock".
Did you mean:
trans_lock
2013 Jan 11
0
[LLVMdev] modifiy the address of GlobalVariable emitted by JIT
...address of the globalvariable by
long* addr = (long*)(cur->getGVAddressPtrVector()[ix]); // no vector
insertion or deletion when this is called.
*addr = (long)next->getMachBlock();
% ix is just a vector index
---------------------------------------------------
std::vector<long>& TransBlock::getGVAddressPtrVector()
{
return gvAddress; // this vector stores the address of the globalvariable
emitted by JIT
}
inline void * getMachBlock() const {
return machBlock; // this is the address of LLVM function emitted
by JIT
}
When I do block chaining, I got segmentation fa...