1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:54:43 -07:00

5g: fix build

R=ken2
CC=golang-dev
https://golang.org/cl/1893042
This commit is contained in:
Russ Cox 2010-07-27 13:43:58 -07:00
parent 4501e18aa5
commit f930d28164
5 changed files with 7 additions and 7 deletions

View File

@ -633,10 +633,10 @@ dsymptr(Sym *s, int off, Sym *x, int xoff)
void
genembedtramp(Type *rcvr, Type *method, Sym *newnam)
genembedtramp(Type *rcvr, Type *method, Sym *newnam, int iface)
{
// TODO(kaib): re-implement genembedtramp
genwrapper(rcvr, method, newnam);
genwrapper(rcvr, method, newnam, iface);
/*
Sym *e;
int c, d, o;

View File

@ -633,7 +633,7 @@ dsymptr(Sym *s, int off, Sym *x, int xoff)
}
void
genembedtramp(Type *rcvr, Type *method, Sym *newnam)
genembedtramp(Type *rcvr, Type *method, Sym *newnam, int iface)
{
Sym *e;
int c, d, o, mov, add, loaded;

View File

@ -642,7 +642,7 @@ dsymptr(Sym *s, int off, Sym *x, int xoff)
}
void
genembedtramp(Type *rcvr, Type *method, Sym *newnam)
genembedtramp(Type *rcvr, Type *method, Sym *newnam, int iface)
{
Sym *e;
int c, d, o, mov, add, loaded;

View File

@ -1209,7 +1209,7 @@ void dumpfuncs(void);
void gdata(Node*, Node*, int);
void gdatacomplex(Node*, Mpcplx*);
void gdatastring(Node*, Strlit*);
void genembedtramp(Type*, Type*, Sym*);
void genembedtramp(Type*, Type*, Sym*, int iface);
void ggloblnod(Node *nam, int32 width);
void ggloblsym(Sym *s, int32 width, int dupok);
Prog* gjmp(Prog*);

View File

@ -199,7 +199,7 @@ methods(Type *t)
// is a pointer adjustment and a JMP.
if(isptr[it->etype] && isptr[this->etype]
&& f->embedded && !isifacemethod(f->type))
genembedtramp(it, f, a->isym);
genembedtramp(it, f, a->isym, 1);
else
genwrapper(it, f, a->isym, 1);
}
@ -212,7 +212,7 @@ methods(Type *t)
oldlist = pc;
if(isptr[t->etype] && isptr[this->etype]
&& f->embedded && !isifacemethod(f->type))
genembedtramp(t, f, a->tsym);
genembedtramp(t, f, a->tsym, 0);
else
genwrapper(t, f, a->tsym, 0);
}