gllvm/gowllvm.go
2017-06-26 13:08:15 -07:00

25 lines
417 B
Go

package main
import(
"os"
"log"
)
func main() {
// Parse command line
var args = os.Args
var callerName = args[0]
args = args[1:]
switch callerName {
case "gowclang":
compile(args, "clang")
case "gowclang++":
compile(args, "clang++")
case "gowextract":
extract(args)
default:
log.Fatal("You should call gowllvm with a valid mode.")
}
}