[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:
Cherry Zhang 2020-07-29 13:26:50 -04:00
parent 80b287fd28
commit 4a92371291
25 changed files with 118 additions and 118 deletions

View file

@ -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.