No need to collect calls without params
There is no need to collect calls without parameters as we only need the signature of the function and the code will be generated when compiling the first file.
This commit is contained in:
parent
ab5de4e769
commit
bcc994fb9f
1 changed files with 6 additions and 3 deletions
|
@ -92,9 +92,12 @@ let node_by_longname ln =
|
|||
corresponding params (static parameters appear as free variables). *)
|
||||
let collect_node_calls ln =
|
||||
let add_called_node ln params acc =
|
||||
match ln with
|
||||
| Modname { qual = "Pervasives" } -> acc
|
||||
| _ -> (ln, params)::acc
|
||||
match params with
|
||||
| [] -> acc
|
||||
| _ ->
|
||||
(match ln with
|
||||
| Modname { qual = "Pervasives" } -> acc
|
||||
| _ -> (ln, params)::acc)
|
||||
in
|
||||
let edesc funs acc ed = match ed with
|
||||
| Eapp ({ a_op = (Enode ln | Efun ln); a_params = params }, _, _) ->
|
||||
|
|
Loading…
Reference in a new issue