summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-02-26 21:04:35 -0500
committerOri Bernstein <ori@eigenstate.org>2014-02-26 21:04:35 -0500
commit685a0afcb76c7509ab97fcbc639b330478598bca (patch)
tree86c71a3d9dfdb08d7c8299de5de207f09a36cb14 /parse/dump.c
parent9e41da83ab7022ef3abffad13e0b30d08a1c4da5 (diff)
downloadmc-685a0afcb76c7509ab97fcbc639b330478598bca.tar.gz
Add a back link for traits, instead of a bool.
This allows us to link the impls to the trait, look them up, and generate trait-local specialized names, instead of hoping that we can hack around the decl id and such when hashing.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse/dump.c b/parse/dump.c
index ba60e32..5a867fb 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -138,8 +138,8 @@ static void outnode(Node *n, FILE *fd, int depth)
outnode(n->file.stmts[i], fd, depth + 1);
break;
case Ndecl:
- fprintf(fd, "(did = %zd, isconst = %d, isgeneric = %d, istraitfn=%d, isextern = %d, vis = %d)\n",
- n->decl.did, n->decl.isconst, n->decl.isgeneric, n->decl.istraitfn, n->decl.isextern, n->decl.vis);
+ fprintf(fd, "(did = %zd, trait=%s, isconst = %d, isgeneric = %d, isextern = %d, vis = %d)\n",
+ n->decl.did, namestr(n->decl.trait->name), n->decl.isconst, n->decl.isgeneric, n->decl.isextern, n->decl.vis);
outsym(n, fd, depth + 1);
outnode(n->decl.init, fd, depth + 1);
break;