search for: caaall

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

Did you mean: aall
2011 Jul 26
4
[LLVMdev] How to get the return address on the stack on LLVM
...te the similar code: ConstantInt* ci2 = llvm::ConstantInt::get(Type::getInt32Ty(RI->getContext()), 1); Value* Args3[] = {ci2}; CallInst* callInst1 = CallInst::Create(Intrinsic::getDeclaration(M, Intrinsic::returnaddress), &Args3[0], array_endof(Args3), "Caaall Return Address", BB); But it does not work this time. I cannot get the return address. What is problem? How can I get the return address? Thank you! Ying -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
2011 Jul 26
0
[LLVMdev] How to get the return address on the stack on LLVM
...lvm::ConstantInt::get(Type::getInt32Ty(RI->getContext()), 1); >>> Value* Args3[] = {ci2}; >>> CallInst* callInst1 = >>> CallInst::Create(Intrinsic::getDeclaration(M, >>> Intrinsic::returnaddress), >>> &Args3[0], array_endof(Args3), "Caaall Return Address", BB); >> >> This code generates a call to llvm.returnaddress(1). This returns the >> program counter of the call site that called the function that called >> the currently active function. >> >> -- John T. >>> >>> But it do...