diff options
Diffstat (limited to 'src/cmd/internal/obj/arm64')
| -rw-r--r-- | src/cmd/internal/obj/arm64/asm7.go | 4 | ||||
| -rw-r--r-- | src/cmd/internal/obj/arm64/obj7.go | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/cmd/internal/obj/arm64/asm7.go b/src/cmd/internal/obj/arm64/asm7.go index 3409957112..1a0ca75703 100644 --- a/src/cmd/internal/obj/arm64/asm7.go +++ b/src/cmd/internal/obj/arm64/asm7.go @@ -696,7 +696,7 @@ func flushpool(ctxt *obj.Link, p *obj.Prog, skip int) { q.To.Type = obj.TYPE_BRANCH q.Pcond = p.Link q.Link = ctxt.Blitrl - q.Lineno = p.Lineno + q.Pos = p.Pos ctxt.Blitrl = q } else if p.Pc+int64(pool.size)-int64(pool.start) < maxPCDisp { return @@ -706,7 +706,7 @@ func flushpool(ctxt *obj.Link, p *obj.Prog, skip int) { // We set it to the line number of the preceding instruction so that // there are no deltas to encode in the pc-line tables. for q := ctxt.Blitrl; q != nil; q = q.Link { - q.Lineno = p.Lineno + q.Pos = p.Pos } ctxt.Elitrl.Link = p.Link diff --git a/src/cmd/internal/obj/arm64/obj7.go b/src/cmd/internal/obj/arm64/obj7.go index 3ea78cd556..f70ca345ed 100644 --- a/src/cmd/internal/obj/arm64/obj7.go +++ b/src/cmd/internal/obj/arm64/obj7.go @@ -169,7 +169,7 @@ func stacksplit(ctxt *obj.Link, p *obj.Prog, framesize int32) *obj.Prog { spfix.Spadj = -framesize pcdata := obj.Appendp(ctxt, spfix) - pcdata.Lineno = ctxt.Cursym.Text.Lineno + pcdata.Pos = ctxt.Cursym.Text.Pos pcdata.Mode = ctxt.Cursym.Text.Mode pcdata.As = obj.APCDATA pcdata.From.Type = obj.TYPE_CONST @@ -585,7 +585,7 @@ loop: a = AB q = ctxt.NewProg() q.As = a - q.Lineno = p.Lineno + q.Pos = p.Pos q.To.Type = obj.TYPE_BRANCH q.To.Offset = p.Pc q.Pcond = p @@ -771,7 +771,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) { // during the execution of the function prologue, the traceback // code will not see a half-updated stack frame. q = obj.Appendp(ctxt, q) - q.Lineno = p.Lineno + q.Pos = p.Pos q.As = ASUB q.From.Type = obj.TYPE_CONST q.From.Offset = int64(ctxt.Autosize) @@ -780,7 +780,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) { q.To.Reg = REGTMP q = obj.Appendp(ctxt, q) - q.Lineno = p.Lineno + q.Pos = p.Pos q.As = AMOVD q.From.Type = obj.TYPE_REG q.From.Reg = REGLINK @@ -788,7 +788,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) { q.To.Reg = REGTMP q1 = obj.Appendp(ctxt, q) - q1.Lineno = p.Lineno + q1.Pos = p.Pos q1.As = AMOVD q1.From.Type = obj.TYPE_REG q1.From.Reg = REGTMP @@ -799,7 +799,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) { // small frame, update SP and save LR in a single MOVD.W instruction q1 = obj.Appendp(ctxt, q) q1.As = AMOVD - q1.Lineno = p.Lineno + q1.Pos = p.Pos q1.From.Type = obj.TYPE_REG q1.From.Reg = REGLINK q1.To.Type = obj.TYPE_MEM @@ -939,7 +939,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) { q.To.Reg = REGSP q.Link = p.Link q.Spadj = int32(-q.From.Offset) - q.Lineno = p.Lineno + q.Pos = p.Pos p.Link = q p = q } @@ -947,7 +947,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) { if p.As != obj.ARET { q = ctxt.NewProg() - q.Lineno = p.Lineno + q.Pos = p.Pos q.Link = p.Link p.Link = q p = q |
