Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LookupInit (0.09 sec)

  1. src/cmd/internal/obj/sym.go

    // If it does not exist, it creates it.
    func (ctxt *Link) Lookup(name string) *LSym {
    	return ctxt.LookupInit(name, nil)
    }
    
    // LookupInit looks up the symbol with name name.
    // If it does not exist, it creates it and
    // passes it to init for one-time initialization.
    func (ctxt *Link) LookupInit(name string, init func(s *LSym)) *LSym {
    	ctxt.hashmu.Lock()
    	s := ctxt.hash[name]
    	if s == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/ppc64/obj9.go

    		var sym *obj.LSym
    		if p.As == obj.ADUFFZERO {
    			sym = c.ctxt.Lookup("runtime.duffzero")
    		} else {
    			sym = c.ctxt.Lookup("runtime.duffcopy")
    		}
    		// Retrieve or create the TOC anchor.
    		symtoc := c.ctxt.LookupInit("TOC."+sym.Name, func(s *obj.LSym) {
    			s.Type = objabi.SDATA
    			s.Set(obj.AttrDuplicateOK, true)
    			s.Set(obj.AttrStatic, true)
    			c.ctxt.Data = append(c.ctxt.Data, s)
    			s.WriteAddr(c.ctxt, 0, 8, sym, 0)
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
Back to top