search for: inspt

Displaying 2 results from an estimated 2 matches for "inspt".

Did you mean: inset
2011 Jul 26
4
[LLVMdev] How to get the return address on the stack on LLVM
...y: ConstantInt* ci = llvm::ConstantInt::get(Type::getInt32Ty(RI->getContext()), 0); Value* Args1[] = {ci}; CallInst* callInst = CallInst::Create(Intrinsic::getDeclaration(M, Intrinsic::returnaddress), &Args1[0], array_endof(Args1), "Call Return Address", InsPt); CallInst will get the return address and it works. While, in the epilogue of the function, due to the canary has been inserted. I write the similar code: ConstantInt* ci2 = llvm::ConstantInt::get(Type::getInt32Ty(RI->getContext()), 1); Value* Args3[] = {ci2}; CallInst* callIns...
2011 Jul 26
0
[LLVMdev] How to get the return address on the stack on LLVM
...antInt::get(Type::getInt32Ty(RI->getContext()), 0); >>> Value* Args1[] = {ci}; >>> CallInst* callInst = CallInst::Create(Intrinsic::getDeclaration(M, >>> Intrinsic::returnaddress), >>> &Args1[0], array_endof(Args1), "Call Return Address", InsPt); >> >> This generates a call to llvm.returnaddress(0). This returns the >> program counter of the call site that called the currently active >> function. >> >>> >>> CallInst will get the return address and it works. >>> >>> While,...