mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.link] cmd/link: remove "2", another round
Rename Reloc2 to Reloc, At2 to At, Aux2 to Aux. Change-Id: Ic98d83c080e8cd80fbe1837c8f0aa134033508ce Reviewed-on: https://go-review.googlesource.com/c/go/+/245578 Reviewed-by: Jeremy Faller <jeremy@golang.org>
This commit is contained in:
parent
80b287fd28
commit
4a92371291
25 changed files with 118 additions and 118 deletions
|
|
@ -149,12 +149,12 @@ func (sb *SymbolBuilder) AddRelocs(n int) Relocs {
|
|||
|
||||
// Add a relocation with given type, return its handle and index
|
||||
// (to set other fields).
|
||||
func (sb *SymbolBuilder) AddRel(typ objabi.RelocType) (Reloc2, int) {
|
||||
func (sb *SymbolBuilder) AddRel(typ objabi.RelocType) (Reloc, int) {
|
||||
j := len(sb.relocs)
|
||||
sb.relocs = append(sb.relocs, goobj2.Reloc{})
|
||||
sb.reltypes = append(sb.reltypes, typ)
|
||||
relocs := sb.Relocs()
|
||||
return relocs.At2(j), j
|
||||
return relocs.At(j), j
|
||||
}
|
||||
|
||||
// Sort relocations by offset.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue