tinygo/interp/errors.go
Ayke van Laethem 9092dbcc53
all: rename go-llvm to new import path
the new import path is:

    tinygo.org/x/go-llvm
2019-01-27 19:26:16 +01:00

17 строки
372 Б
Go

package interp
// This file provides useful types for errors encountered during IR evaluation.
import (
"tinygo.org/x/go-llvm"
)
type Unsupported struct {
Inst llvm.Value
}
func (e Unsupported) Error() string {
// TODO: how to return the actual instruction string?
// It looks like LLVM provides no function for that...
return "interp: unsupported instruction"
}