summary refs log tree commit diff
path: root/emit.c
diff options
context:
space:
mode:
Diffstat (limited to 'emit.c')
-rw-r--r--emit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/emit.c b/emit.c
index b880d67..490628e 100644
--- a/emit.c
+++ b/emit.c
@@ -235,7 +235,10 @@ emitdbgfile(char *fn, FILE *f)
 }
 
 void
-emitdbgloc(uint loc, FILE *f)
+emitdbgloc(uint line, uint col, FILE *f)
 {
-	fprintf(f, "\t.loc %u %u\n", curfile, loc);
+	if (col != 0)
+		fprintf(f, "\t.loc %u %u %u\n", curfile, line, col);
+	else
+		fprintf(f, "\t.loc %u %u\n", curfile, line);
 }