-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only keep functions referenced by fptr if fptr is used
Up until this commit, any function referenced by a fptr would be unconditionally excluded from DCE. Now we're actually checking if the function pointer is even used. If it isn't, don't bother excluding the referenced function! To achieve this, the tool now treats calls and function pointer assignments equally. Instead of resolve_calls resolving into calls[] and resolve_fptrs[] resolving into fptrs[], both now resolve into referenced_functions[]. traverse_calls() has also been renamed to traverse_functions() since it isn't restricted to calls anymore. Signed-off-by: Patrick Pedersen <[email protected]>
- Loading branch information
Showing
2 changed files
with
24 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters