summaryrefslogtreecommitdiff
path: root/parse/use.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse/use.c')
-rw-r--r--parse/use.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/parse/use.c b/parse/use.c
index c75cdc4..bc0ed1e 100644
--- a/parse/use.c
+++ b/parse/use.c
@@ -263,6 +263,11 @@ static void traitpickle(FILE *fd, Trait *tr)
wrsym(fd, tr->funcs[i]);
}
+static void implpickle(FILE *fd, Node *impl)
+{
+ die("Pickling impls not yet supported.");
+}
+
static void wrtype(FILE *fd, Type *ty)
{
if (ty->tid >= Builtinmask)
@@ -888,6 +893,13 @@ void writeuse(FILE *f, Node *file)
}
}
+ for (i = 0; i < nexportimpls; i++) {
+ if (exportimpls[i]->impl.vis == Visexport || exportimpls[i]->impl.vis == Vishidden) {
+ wrbyte(f, 'R');
+ implpickle(f, exportimpls[i]);
+ }
+ }
+
k = htkeys(st->dcl, &n);
for (i = 0; i < n; i++) {
s = getdcl(st, k[i]);