Move lenType definition to runtime (partially)

This commit is contained in:
Ayke van Laethem
2018-08-29 20:48:56 +02:00
parent abaae5b90d
commit bf160d096b
5 changed files with 24 additions and 4 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ func NewCompiler(pkgName, triple string, dumpSSA bool) (*Compiler, error) {
// Depends on platform (32bit or 64bit), but fix it here for now.
c.intType = llvm.Int32Type()
c.lenType = llvm.Int32Type()
c.lenType = llvm.Int32Type() // also defined as runtime.lenType
c.uintptrType = c.targetData.IntPtrType()
c.i8ptrType = llvm.PointerType(llvm.Int8Type(), 0)