compiler/interface: correct comment on function

Этот коммит содержится в:
Ayke van Laethem 2019-01-11 20:23:12 +01:00
родитель c0ab91a263
коммит 072eb590a6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: E97FF5335DFDFDED

Просмотреть файл

@ -631,9 +631,9 @@ func (p *lowerInterfacesPass) createInterfaceImplementsFunc(itf *interfaceInfo)
p.builder.CreateRet(llvm.ConstInt(p.ctx.Int1Type(), 0, false)) p.builder.CreateRet(llvm.ConstInt(p.ctx.Int1Type(), 0, false))
} }
// getInterfaceMethodFunc return a function that returns a function pointer for // getInterfaceMethodFunc returns a thunk for calling a method on an interface.
// calling a method on an interface. It only declares the function, // It only declares the function, createInterfaceMethodFunc actually defines the
// createInterfaceMethodFunc actually defines the function. // function.
func (p *lowerInterfacesPass) getInterfaceMethodFunc(itf *interfaceInfo, signature *signatureInfo, returnType llvm.Type, params []llvm.Type) llvm.Value { func (p *lowerInterfacesPass) getInterfaceMethodFunc(itf *interfaceInfo, signature *signatureInfo, returnType llvm.Type, params []llvm.Type) llvm.Value {
if fn, ok := itf.methodFuncs[signature]; ok { if fn, ok := itf.methodFuncs[signature]; ok {
// This function has already been created. // This function has already been created.