Displaying 1 result from an estimated 1 matches for "mem_region_lookup".
2017 Apr 28
2
LLVMGetFirstFunction() / LLVMGetNextFunction( ) problem
...LLVMGetValueName(func);
(gdb)
156 func_addr = LLVMGetFunctionAddress(engine, func_name);
(gdb) print func_name
$9 = 0x1efe180 "matmul"
(gdb) next
159 if (!func_addr) continue;
(gdb)
161 symbol_table_add(symbol_table, func_name, func_addr);
(gdb)
164 if ((size = mem_region_lookup(mem_region_anchor, func_addr))) {
symbol_table_add(symbol_table, "dummy_symbol", func_addr + size); }
(gdb)
154 for (func = first_func; func != last_func; func =
LLVMGetNextFunction(func)) {
(gdb)
168 symbol_table_calc_symbol_sizes(symbol_table);
Any suggestions appreciated.
T...