Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/evm/internal/compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

func Compile(fn string, src []byte, debug bool) (string, error) {
compiler := asm.NewCompiler(debug)
compiler.Feed(asm.Lex(fn, src, debug))
compiler.Feed(asm.Lex(src, debug))

bin, compileErrors := compiler.Compile()
if len(compileErrors) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion core/asm/lex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
)

func lexAll(src string) []token {
ch := Lex("test.asm", []byte(src), false)
ch := Lex([]byte(src), false)

var tokens []token
for i := range ch {
Expand Down
2 changes: 1 addition & 1 deletion core/asm/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type lexer struct {

// lex lexes the program by name with the given source. It returns a
// channel on which the tokens are delivered.
func Lex(name string, source []byte, debug bool) <-chan token {
func Lex(source []byte, debug bool) <-chan token {
ch := make(chan token)
l := &lexer{
input: string(source),
Expand Down