search for: pointercast

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

Did you mean: pointer_cast
2019 Jan 15
2
Function - replaceAllUsesWith
...y try overloading “puts” with a custom address before I start the JIT process. I want to replace the call to “puts” with my own address. For a test purpose I tried this now: mainModue->getFunction("puts")->replaceAllUsesWith( llvm::ConstantExpr::getPointerCast( llvm::ConstantInt::get(llvm::IntegerType::get(context, 64), 0xF), mainModue->getFunction("puts")->getType() ) ); This code will crash the application though. I know that 0xF is not a correct ad...
2019 Jan 15
2
Function - replaceAllUsesWith
...<llvm-dev at lists.llvm.org> wrote: > I wondered if I can do the external symbol resolution without using > the JIT and RuntimeDyld (for now). For me it sounds like something > that could be possible… I'm virtually certain it is. I think lldb does it, in fact. You mentioned the pointercast didn't work, but didn't give any details on how or what actually crashed. Do you have more you can tell us? Also, hopefully you're using a build of LLVM with assertions enabled, that'll catch errors much earlier. Cheers. Tim. Als GmbH eingetragen im Handelsregister Bad Homburg v....