X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mate.git;a=blobdiff_plain;f=Mate.hs;h=4664ff188dc26229cd591324c9d69ff411f0d569;hp=08e7a7946cdec2392c47877697b96541aa957153;hb=03ddf0056a8ebae7ce10d694bbf906c276677a33;hpb=bc05c4601a08bc81f459b98ac54575fd4b56fb48 diff --git a/Mate.hs b/Mate.hs index 08e7a79..4664ff1 100644 --- a/Mate.hs +++ b/Mate.hs @@ -66,14 +66,11 @@ executeMain bclspath cls = do case find (\x -> methodName x == "main") methods of Just m -> do let mi = MethodInfo "main" bclspath $ methodSignature m - hmap <- parseMethod cls "main" $ methodSignature m - case hmap of - Just hmap' -> do - entry <- compileBB hmap' mi - addMethodRef entry mi [bclspath] + rawmethod <- parseMethod cls "main" $ methodSignature m + entry <- compileBB rawmethod mi + addMethodRef entry mi [bclspath] #ifdef DEBUG - printf "executing `main' now:\n" + printf "executing `main' now:\n" #endif - executeFuncPtr entry - Nothing -> error "main not found" + executeFuncPtr entry Nothing -> error "main not found"