interp: avoid an extra TargetData argument

This can be easily calculated from the module datalayout string.
This commit is contained in:
Ayke van Laethem
2019-09-21 20:02:54 +02:00
committed by Ayke
parent 17ef7a5c32
commit da7f7eef00
3 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ func Compile(pkgName, outpath string, spec *TargetSpec, config *BuildConfig, act
return errors.New("verification error after IR construction")
}
err = interp.Run(c.Module(), c.TargetData(), config.dumpSSA)
err = interp.Run(c.Module(), config.dumpSSA)
if err != nil {
return err
}