all: remove last traces of the C runtime

This increases code size on the nrf, but it is a fixed increase and can
hopefully be reduced in the future.
The Makefile gets a lot smaller with this which is a huge advantage
(less build time complexity).
This commit is contained in:
Ayke van Laethem
2018-09-12 23:10:35 +02:00
parent f7f7d4cbbc
commit 8ce139284a
4 changed files with 7 additions and 40 deletions
+2
View File
@@ -96,6 +96,8 @@ func NewCompiler(pkgName, triple string, dumpSSA bool) (*Compiler, error) {
c.targetData = c.machine.CreateTargetData()
c.mod = llvm.NewModule(pkgName)
c.mod.SetTarget(triple)
c.mod.SetDataLayout(c.targetData.String())
c.ctx = c.mod.Context()
c.builder = c.ctx.NewBuilder()
c.dibuilder = llvm.NewDIBuilder(c.mod)