From 4ee497d22e8872462ee1aad5aa96b68e27b4657e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 4 Sep 2017 19:52:51 +0200 Subject: pkg/compiler: use correct arch ptr size --- pkg/compiler/compiler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/compiler/compiler.go') diff --git a/pkg/compiler/compiler.go b/pkg/compiler/compiler.go index fe3f28d77..f08a32987 100644 --- a/pkg/compiler/compiler.go +++ b/pkg/compiler/compiler.go @@ -43,14 +43,14 @@ type Prog struct { } // Compile compiles sys description. -func Compile(desc *ast.Description, consts map[string]uint64, eh ast.ErrorHandler) *Prog { +func Compile(desc *ast.Description, consts map[string]uint64, ptrSize uint64, eh ast.ErrorHandler) *Prog { if eh == nil { eh = ast.LoggingHandler } comp := &compiler{ desc: ast.Clone(desc), eh: eh, - ptrSize: 8, // TODO(dvyukov): must be provided by target + ptrSize: ptrSize, unsupported: make(map[string]bool), resources: make(map[string]*ast.Resource), structs: make(map[string]*ast.Struct), -- cgit mrf-deployment