gllvm/gllvm.go

24 lines
350 B
Go

package main
import(
"os"
)
func main() {
// Parse command line
var args = os.Args
var callerName = args[0]
args = args[1:]
switch callerName {
case "gclang":
compile(args, "clang")
case "gclang++":
compile(args, "clang++")
case "get-bc":
extract(args)
default:
logError("You should call %s with a valid name.", callerName)
}
}