3636
3737 *)
3838
39- (* rmtmps .mli *)
39+ (* rmUnused .mli *)
4040(* remove unused things from cil files: *)
4141(* - local temporaries introduced but not used *)
4242(* - global declarations that are not used *)
4646
4747(* Some clients may wish to augment or replace the standard strategy
4848 for finding the initially reachable roots. The optional
49- "isRoot" argument to Rmtmps.removeUnusedTemps grants this
49+ "isRoot" argument to RmUnused.removeUnused grants this
5050 flexibility. If given, it should name a function which will return
5151 true if a given global should be treated as a retained root.
5252
53- Function Rmtmps .isDefaultRoot encapsulates the default root
53+ Function RmUnused .isDefaultRoot encapsulates the default root
5454 collection, which consists of those global variables and functions
5555 which are visible to the linker and runtime loader. A client's
5656 root filter can use this if the goal is to augment rather than
57- replace the standard logic. Function Rmtmps .isExportedRoot is an
57+ replace the standard logic. Function RmUnused .isExportedRoot is an
5858 alternate name for this same function.
5959
60- Function Rmtmps .isCompleteProgramRoot is an example of an alternate
60+ Function RmUnused .isCompleteProgramRoot is an example of an alternate
6161 root collection. This function assumes that it is operating on a
6262 complete program rather than just one object file. It treats
6363 "main()" as a root, as well as any function carrying the
@@ -75,8 +75,8 @@ val isExportedRoot : rootsFilter
7575val isCompleteProgramRoot : rootsFilter
7676
7777(* process a complete Cil file *)
78- val removeUnusedTemps : ?isRoot : rootsFilter -> Cil .file -> unit
78+ val removeUnused : ?isRoot : rootsFilter -> Cil .file -> unit
7979
8080
81- val keepUnused : bool ref (* Set this to true to turn off this module *)
82- val rmUnusedInlines : bool ref (* Delete unused inline funcs in gcc mode? *)
81+ val keepUnused : bool ref (* Set this to true to turn off this module *)
82+ val rmUnusedInlines : bool ref (* Delete unused inline funcs in gcc mode? *)
0 commit comments