示例#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)
	}
}