search for: func_print

Displaying 1 result from an estimated 1 matches for "func_print".

2012 Sep 05
1
[LLVMdev] Calling a function with a pointer to a global char array as argument
...ntext(), APInt(32, StringRef("0"), 10)); const_ptr_7_indices.push_back(const_int32_8); const_ptr_7_indices.push_back(const_int32_8); Constant* const_ptr_7 = ConstantExpr::getGetElementPtr(fname, const_ptr_7_indices); CallInst* call_print1 = CallInst::Create(func_print, const_ptr_7, ""); F->getInstList().insert((Instruction*)CI, call_print1); //insert the call instruction But getting the error on the ConstantExpr::getGetElementPtr() function. opt: /home/arnie/llvm-clang/llvm/include/llvm/Support/Casting.h:194: typename llvm::cast_retty<To, Fro...