aboutsummaryrefslogtreecommitdiffstats
path: root/prog/prog.go
diff options
context:
space:
mode:
Diffstat (limited to 'prog/prog.go')
-rw-r--r--prog/prog.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/prog/prog.go b/prog/prog.go
index 575680882..69c76c019 100644
--- a/prog/prog.go
+++ b/prog/prog.go
@@ -20,6 +20,14 @@ type Call struct {
Comment string
}
+func (p *Prog) Finalize() error {
+ for _, c := range p.Calls {
+ p.Target.assignSizesCall(c)
+ p.Target.SanitizeCall(c)
+ }
+ return p.validate()
+}
+
type Arg interface {
Type() Type
Size() uint64