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
-5
View File
@@ -187,11 +187,6 @@ func (c *Compiler) Module() llvm.Module {
return c.mod
}
// Return the LLVM target data object. Only valid after a successful compile.
func (c *Compiler) TargetData() llvm.TargetData {
return c.targetData
}
// selectGC picks an appropriate GC strategy if none was provided.
func (c *Compiler) selectGC() string {
if c.GC != "" {