forked from fruits-lab/vitaminc
-
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.
Reduce ad-hoc type conversions on functions
By not treating function pointers specially in `GetLLVMType`, most of the ad-hoc conversions from function types to pointer types are eliminated. The only remaining conversion is when referencing the ID of a function; the type of such ID expression should be a pointer type instead of a function type. Additionally, when using such an ID expression in a function call, we need to convert it back to a function type.
- Loading branch information
Showing
3 changed files
with
17 additions
and
31 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
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