mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 19:23:25 +00:00
compiler: decouple func lowering from interface type codes
There is no good reason for func values to refer to interface type codes. The only thing they need is a stable identifier for function signatures, which is easily created as a new kind of globals. Decoupling makes it easier to change interface related code.
This commit is contained in:
committed by
Ron Evans
parent
8383552552
commit
57271d7eaa
@@ -23,7 +23,7 @@ import (
|
||||
// Version of the compiler pacakge. Must be incremented each time the compiler
|
||||
// package changes in a way that affects the generated LLVM module.
|
||||
// This version is independent of the TinyGo version number.
|
||||
const Version = 7 // last change: don't rely on runtime.typecodeID struct type name
|
||||
const Version = 8 // last change: don't use runtime.typecodeID in func lowering
|
||||
|
||||
func init() {
|
||||
llvm.InitializeAllTargets()
|
||||
|
||||
Reference in New Issue
Block a user