Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ParseABI (0.08 sec)

  1. src/cmd/link/internal/ld/go.go

    				remote = f[2]
    			}
    			// The compiler adds a fourth argument giving
    			// the definition ABI of function symbols.
    			abi := obj.ABI0
    			if len(f) > 3 {
    				var ok bool
    				abi, ok = obj.ParseABI(f[3])
    				if !ok {
    					fmt.Fprintf(os.Stderr, "%s: bad ABI in cgo_export directive %s\n", os.Args[0], f)
    					nerrors++
    					return
    				}
    			}
    
    			s := l.LookupOrCreateSym(local, sym.ABIToVersion(abi))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/abi.go

    		case "def", "ref":
    			// Parse line.
    			if len(parts) != 3 {
    				log.Fatalf(`%s:%d: invalid symabi: syntax is "%s sym abi"`, file, lineNum, parts[0])
    			}
    			sym, abistr := parts[1], parts[2]
    			abi, valid := obj.ParseABI(abistr)
    			if !valid {
    				log.Fatalf(`%s:%d: invalid symabi: unknown abi "%s"`, file, lineNum, abistr)
    			}
    
    			sym = s.canonicalize(sym)
    
    			// Record for later.
    			if parts[0] == "def" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/link.go

    	// compiler generates wrappers for calls to and from other
    	// ABIs.
    	ABIInternal
    
    	ABICount
    )
    
    // ParseABI converts from a string representation in 'abistr' to the
    // corresponding ABI value. Second return value is TRUE if the
    // abi string is recognized, FALSE otherwise.
    func ParseABI(abistr string) (ABI, bool) {
    	switch abistr {
    	default:
    		return ABI0, false
    	case "ABI0":
    		return ABI0, true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/parse.go

    		abistr := p.get(scanner.Ident).String()
    		if !p.allowABI {
    			if issueError {
    				p.errorf("ABI selector only permitted when compiling runtime, reference was to %q", name)
    			}
    		} else {
    			theabi, valid := obj.ParseABI(abistr)
    			if !valid {
    				if issueError {
    					p.errorf("malformed ABI selector %q in reference to %q",
    						abistr, name)
    				}
    			} else {
    				abi = theabi
    			}
    		}
    	}
    	p.get('>')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 36.9K bytes
    - Viewed (0)
Back to top