search for: llvmgetlastfunction

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

2017 Apr 28
2
LLVMGetFirstFunction() / LLVMGetNextFunction( ) problem
...@main() #0 {} ... However, when I use LLVMGetirstFunction() and LLVMGetNextFunction() to iterate through the functions in the module, it only iterates through the function "matmul". It never finds main(). 50 first_func = LLVMGetFirstFunction(module); (gdb) next 151 last_func = LLVMGetLastFunction(module); (gdb) 154 for (func = first_func; func != last_func; func = LLVMGetNextFunction(func)) { (gdb) 155 func_name = LLVMGetValueName(func); (gdb) 156 func_addr = LLVMGetFunctionAddress(engine, func_name); (gdb) print func_name $9 = 0x1efe180 "matmul" (gdb) next 159...