Displaying 1 result from an estimated 1 matches for "executefunction".
2019 Aug 23
2
LLVM-8.0 | Requesting Help : Function->getName() returns empty string
...nction.
Function *fn = module->getFunction(fnName);
printf("func Name: %s.\n", fn->getName().str().c_str());
.
.
return (intptr_t) fn;
This prints : "func Name: main." I convert the ptr to int and return it.
Later I am receiving this as a Func Handler in other function
executeFunction(int funcHandle . .) {
.
.
Function *fn = (Function *) funcHandle;
printf("func Name: %s\n",fn->getName().str().c_str());
gv = executionEngine->runFunction(fn, *args);
.
}
Here it prints an empty string and also the executionEngine->runFunction()
gives error : Assert...