decodeFuncValue extracts the context and the function pointer from this func value.
(funcValue llvm.Value)
| 36 | // decodeFuncValue extracts the context and the function pointer from this func |
| 37 | // value. |
| 38 | func (b *builder) decodeFuncValue(funcValue llvm.Value) (funcPtr, context llvm.Value) { |
| 39 | context = b.CreateExtractValue(funcValue, 0, "") |
| 40 | funcPtr = b.CreateExtractValue(funcValue, 1, "") |
| 41 | return |
| 42 | } |
| 43 | |
| 44 | // getFuncType returns the type of a func value given a signature. |
| 45 | func (c *compilerContext) getFuncType(typ *types.Signature) llvm.Type { |
no outgoing calls
no test coverage detected