- sourcefile = be_retrieve_dbg_info(dbg, &lineno);
- if(sourcefile != NULL) {
- be_emit_string(env, sourcefile);
- be_emit_irprintf(env, ":%u", lineno);
+ loc = ir_retrieve_dbg_info(dbg);
+ if (loc.file) {
+ be_emit_string(loc.file);
+ if (loc.line != 0) {
+ be_emit_irprintf(":%u", loc.line);
+ if (loc.column != 0) {
+ be_emit_irprintf(":%u", loc.column);
+ }
+ }