mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a new Thunk-flag in SILFunction which specifies that a function is a thunk.
This will have an effect on inlining into thunks. Currently this flag is set for witness thunks and thunks from function signature optimization. No change in code generation, yet. Swift SVN r24998
This commit is contained in:
@@ -358,7 +358,8 @@ public:
|
||||
CanSILFunctionType type,
|
||||
IsBare_t isBareSILFunction,
|
||||
IsTransparent_t isTransparent,
|
||||
IsFragile_t isFragile);
|
||||
IsFragile_t isFragile,
|
||||
IsThunk_t isThunk);
|
||||
|
||||
/// \brief Return the declaration of a function, or create it if it doesn't
|
||||
/// exist..
|
||||
@@ -369,6 +370,7 @@ public:
|
||||
IsBare_t isBareSILFunction,
|
||||
IsTransparent_t isTransparent,
|
||||
IsFragile_t isFragile,
|
||||
IsThunk_t isThunk = IsNotThunk,
|
||||
SILFunction::ClassVisibility_t CV =
|
||||
SILFunction::NotRelevant);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user