summaryrefslogtreecommitdiff
path: root/6/asm.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-10-07 20:17:58 -0400
committerOri Bernstein <ori@eigenstate.org>2014-10-07 20:17:58 -0400
commit7088e222cf1b0ae17607ce0ac232067a172b851e (patch)
tree6617fb95823025f21b60cc0f0270548bad2730fb /6/asm.h
parent6b45f935bd240eb066fe4edd49b8cd0853bc5dd9 (diff)
downloadmc-7088e222cf1b0ae17607ce0ac232067a172b851e.tar.gz
Keep track of source files as well as line numbers.
This makes our error messages better *AND* makes it easier to provide good debug info later.
Diffstat (limited to '6/asm.h')
-rw-r--r--6/asm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/asm.h b/6/asm.h
index 7e0eced..d0b009f 100644
--- a/6/asm.h
+++ b/6/asm.h
@@ -198,7 +198,7 @@ extern size_t maxregid;
extern Loc **locmap; /* mapping from reg id => Loc * */
char *genlblstr(char *buf, size_t sz);
-Node *genlbl(int line);
+Node *genlbl(Srcloc loc);
Loc *loclbl(Node *lbl);
Loc *locstrlbl(char *lbl);
Loc *locreg(Mode m);