Browse Source
all: go fmt
The import path changes changed the order of imports, but no `go fmt`
was run before the commit. Oops...
pull/150/head
Ayke van Laethem
6 years ago
No known key found for this signature in database
GPG Key ID: E97FF5335DFDFDED
6 changed files with
6 additions and
6 deletions
-
compiler/calls.go
-
compiler/channel.go
-
compiler/compiler.go
-
compiler/defer.go
-
compiler/interface.go
-
ir/ir.go
|
|
@ -1,8 +1,8 @@ |
|
|
|
package compiler |
|
|
|
|
|
|
|
import ( |
|
|
|
"tinygo.org/x/go-llvm" |
|
|
|
"golang.org/x/tools/go/ssa" |
|
|
|
"tinygo.org/x/go-llvm" |
|
|
|
) |
|
|
|
|
|
|
|
// For a description of the calling convention in prose, see:
|
|
|
|
|
|
@ -6,8 +6,8 @@ package compiler |
|
|
|
import ( |
|
|
|
"go/types" |
|
|
|
|
|
|
|
"tinygo.org/x/go-llvm" |
|
|
|
"golang.org/x/tools/go/ssa" |
|
|
|
"tinygo.org/x/go-llvm" |
|
|
|
) |
|
|
|
|
|
|
|
// emitMakeChan returns a new channel value for the given channel type.
|
|
|
|
|
|
@ -14,10 +14,10 @@ import ( |
|
|
|
"strconv" |
|
|
|
"strings" |
|
|
|
|
|
|
|
"tinygo.org/x/go-llvm" |
|
|
|
"github.com/aykevl/tinygo/ir" |
|
|
|
"github.com/aykevl/tinygo/loader" |
|
|
|
"golang.org/x/tools/go/ssa" |
|
|
|
"tinygo.org/x/go-llvm" |
|
|
|
) |
|
|
|
|
|
|
|
func init() { |
|
|
|
|
|
@ -14,9 +14,9 @@ package compiler |
|
|
|
// frames.
|
|
|
|
|
|
|
|
import ( |
|
|
|
"tinygo.org/x/go-llvm" |
|
|
|
"github.com/aykevl/tinygo/ir" |
|
|
|
"golang.org/x/tools/go/ssa" |
|
|
|
"tinygo.org/x/go-llvm" |
|
|
|
) |
|
|
|
|
|
|
|
// deferInitFunc sets up this function for future deferred calls. It must be
|
|
|
|
|
|
@ -9,9 +9,9 @@ import ( |
|
|
|
"go/token" |
|
|
|
"go/types" |
|
|
|
|
|
|
|
"tinygo.org/x/go-llvm" |
|
|
|
"github.com/aykevl/tinygo/ir" |
|
|
|
"golang.org/x/tools/go/ssa" |
|
|
|
"tinygo.org/x/go-llvm" |
|
|
|
) |
|
|
|
|
|
|
|
// parseMakeInterface emits the LLVM IR for the *ssa.MakeInterface instruction.
|
|
|
|
|
|
@ -7,9 +7,9 @@ import ( |
|
|
|
"sort" |
|
|
|
"strings" |
|
|
|
|
|
|
|
"tinygo.org/x/go-llvm" |
|
|
|
"github.com/aykevl/tinygo/loader" |
|
|
|
"golang.org/x/tools/go/ssa" |
|
|
|
"tinygo.org/x/go-llvm" |
|
|
|
) |
|
|
|
|
|
|
|
// This file provides a wrapper around go/ssa values and adds extra
|
|
|
|