github.com/aykevl/tinygo@v0.5.0/interp/errors.go (about) 1 package interp 2 3 // This file provides useful types for errors encountered during IR evaluation. 4 5 import ( 6 "tinygo.org/x/go-llvm" 7 ) 8 9 type Unsupported struct { 10 Inst llvm.Value 11 } 12 13 func (e Unsupported) Error() string { 14 // TODO: how to return the actual instruction string? 15 // It looks like LLVM provides no function for that... 16 return "interp: unsupported instruction" 17 }