diff options
author | Russ Cox <rsc@golang.org> | 2013-07-19 18:52:35 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2013-07-19 18:52:35 -0400 |
commit | 69a3d4db3da3d79d7b13af937808a33a2572918a (patch) | |
tree | 58ca84a38c6c2f4075e5e8974879c379cae64928 /src/cmd/ld/lib.c | |
parent | e485bbd832f245b2a5c1713068b26e4d40a284fe (diff) | |
download | go-69a3d4db3da3d79d7b13af937808a33a2572918a.tar.gz |
cmd/ld, runtime: remove unused fields from Func
R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/11604043
Diffstat (limited to 'src/cmd/ld/lib.c')
-rw-r--r-- | src/cmd/ld/lib.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/cmd/ld/lib.c b/src/cmd/ld/lib.c index 674a12977..49f2bc304 100644 --- a/src/cmd/ld/lib.c +++ b/src/cmd/ld/lib.c @@ -2400,7 +2400,7 @@ pclntab(void) // fixed size of struct, checked below off = funcstart; - end = funcstart + PtrSize + 6*4 + 5*4 + npcdata*4 + nfuncdata*PtrSize; + end = funcstart + PtrSize + 3*4 + 5*4 + npcdata*4 + nfuncdata*PtrSize; if(nfuncdata > 0 && (end&(PtrSize-1))) end += 4; symgrow(ftab, end); @@ -2417,9 +2417,6 @@ pclntab(void) off = setuint32(ftab, off, ArgsSizeUnknown); else off = setuint32(ftab, off, cursym->args); - - // Dead space. TODO: Delete (and update all parsers). - off = setuint32(ftab, off, 0); // frame int32 // TODO: Remove entirely. The pcsp table is more precise. @@ -2432,10 +2429,6 @@ pclntab(void) else off = setuint32(ftab, off, (uint32)cursym->text->to.offset+PtrSize); - // Dead space. TODO: Delete (and update all parsers). - off = setuint32(ftab, off, 0); - off = setuint32(ftab, off, 0); - // pcsp table (offset int32) off = addpctab(ftab, off, cursym, "pctospadj", pctospadj, 0); |