mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[sil-module] Add a helper method to lookup or create a SILFunction based on the SILDeclRef.
This API is more convenient than using the old getOrCreate API, which requires 9 parameters to be provided. I'm going to use this API in the subsequent commits. Swift SVN r27097
This commit is contained in:
@@ -406,6 +406,12 @@ public:
|
||||
SILFunction::ClassVisibility_t CV =
|
||||
SILFunction::NotRelevant);
|
||||
|
||||
/// \brief Return the declaration of a function, or create it if it doesn't
|
||||
/// exist..
|
||||
SILFunction *getOrCreateFunction(SILLocation loc,
|
||||
SILDeclRef constant,
|
||||
ForDefinition_t forDefinition);
|
||||
|
||||
/// Look up the SILWitnessTable representing the lowering of a protocol
|
||||
/// conformance, and collect the substitutions to apply to the referenced
|
||||
/// witnesses, if any.
|
||||
|
||||
Reference in New Issue
Block a user