| 1 |
// Copyright 2020 The Go Authors. All rights reserved. |
| 2 |
// Use of this source code is governed by a BSD-style |
| 3 |
// license that can be found in the LICENSE file. |
| 4 |
|
| 5 |
// +build !aix !gccgo |
| 6 |
|
| 7 |
package reflect |
| 8 |
|
| 9 |
// rtypeEqual returns true if both rtypes are identical. |
| 10 |
func rtypeEqual(t1, t2 *rtype) bool { |
| 11 |
return t1 == t2 |
| 12 |
} |
| 13 |
|
| 14 |
// typeEqual returns true if both Types are identical. |
| 15 |
func typeEqual(t1, t2 Type) bool { |
| 16 |
return t1 == t2 |
| 17 |
} |
| 18 |
|
| 19 |
func toType(p *rtype) Type { |
| 20 |
if p == nil { |
| 21 |
return nil |
| 22 |
} |
| 23 |
return p |
| 24 |
} |