diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-18 14:03:06 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-18 14:03:06 -0400 |
commit | c43a07086bdeefe029c5b6da4ec1c8020126d5ca (patch) | |
tree | d497b43234d5d59ca40ceb22154d24e15fdeb395 /all.h | |
parent | c6f3adc52d375d434e3dfd2d23056f0bfdbcdc67 (diff) | |
download | roux-c43a07086bdeefe029c5b6da4ec1c8020126d5ca.tar.gz |
factor some subtyping logic in clsmerge()
Diffstat (limited to 'all.h')
-rw-r--r-- | all.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/all.h b/all.h index c729b86..19125b0 100644 --- a/all.h +++ b/all.h @@ -190,6 +190,7 @@ enum FCmp { }; enum Class { + Kx = -1, /* "top" class (see usecheck() and clsmerge()) */ Kw, Kl, Ks, @@ -488,6 +489,7 @@ void idup(Ins **, Ins *, ulong); Ins *icpy(Ins *, Ins *, ulong); void *vnew(ulong, size_t); void vgrow(void *, ulong); +int clsmerge(short *, short); int phicls(int, Tmp *); Ref newtmp(char *, int, Fn *); void chuse(Ref, int, Fn *); |