String returns the LLVM syntax representation of the function as a type-value pair.
()
| 96 | // String returns the LLVM syntax representation of the function as a type-value |
| 97 | // pair. |
| 98 | func (f *Func) String() string { |
| 99 | return fmt.Sprintf("%s %s", f.Type(), f.Ident()) |
| 100 | } |
| 101 | |
| 102 | // Type returns the type of the function. |
| 103 | func (f *Func) Type() types.Type { |