예제 #1
0
func main() {
	log.SetFlags(0)
	llvm.LinkInInterpreter()
	llvm.InitializeAllTargets()
	llvm.InitializeAllAsmPrinters()
	llvm.InitializeAllAsmParsers()

	parser := NewParser(os.Stdin)
	parser.Main()
}
예제 #2
0
파일: gllgo.go 프로젝트: glycerine/llgo
func main() {
	llvm.InitializeAllTargets()
	llvm.InitializeAllTargetMCs()
	llvm.InitializeAllTargetInfos()
	llvm.InitializeAllAsmParsers()
	llvm.InitializeAllAsmPrinters()

	opts, err := parseArguments(os.Args[1:])
	if err != nil {
		report(err)
		os.Exit(1)
	}

	err = performActions(&opts)
	if err != nil {
		report(err)
		os.Exit(1)
	}
}