diff options
Diffstat (limited to 'src/cmd/cc/sub.c')
-rw-r--r-- | src/cmd/cc/sub.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmd/cc/sub.c b/src/cmd/cc/sub.c index bed989102..94c11d021 100644 --- a/src/cmd/cc/sub.c +++ b/src/cmd/cc/sub.c @@ -2056,3 +2056,13 @@ mixedasop(Type *l, Type *r) { return !typefd[l->etype] && typefd[r->etype]; } + +LSym* +linksym(Sym *s) +{ + if(s == nil) + return nil; + if(s->lsym != nil) + return s->lsym; + return linklookup(ctxt, s->name, s->class == CSTATIC); +} |