[sledge] Minor improvement to Frontend.cleanup

Summary:
It is not necessary to clear tables and sets that do not contain any
pointers to LLVM values.

Reviewed By: jvillard

Differential Revision: D26451306

fbshipit-source-id: 403c588fb
master
Josh Berdine 4 years ago committed by Facebook GitHub Bot
parent 6fb29dac90
commit 3af760ee40

@ -1633,12 +1633,10 @@ let check_datalayout llcontext lldatalayout =
let cleanup llmodule llcontext = let cleanup llmodule llcontext =
SymTbl.clear sym_tbl ; SymTbl.clear sym_tbl ;
ScopeTbl.clear scope_tbl ; ScopeTbl.clear scope_tbl ;
String.Tbl.clear realpath_tbl ;
LltypeTbl.clear anon_struct_name ; LltypeTbl.clear anon_struct_name ;
LltypeTbl.clear memo_type ; LltypeTbl.clear memo_type ;
GlobTbl.clear memo_global ; GlobTbl.clear memo_global ;
ValTbl.clear memo_value ; ValTbl.clear memo_value ;
StringS.clear ignored_callees ;
calls_to_backpatch := [] ; calls_to_backpatch := [] ;
Gc.full_major () ; Gc.full_major () ;
Llvm.dispose_module llmodule ; Llvm.dispose_module llmodule ;

Loading…
Cancel
Save