mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Allow SILGen to emit only a specific set of SILDeclRefs
Extend ASTLoweringDescriptor to store a set of SILDeclRefs to emit through `emitFunctionDefinition`.
This commit is contained in:
@@ -277,10 +277,10 @@ struct SILDeclRef {
|
||||
SILLinkage getLinkage(ForDefinition_t forDefinition) const;
|
||||
|
||||
/// Return the hash code for the SIL declaration.
|
||||
llvm::hash_code getHashCode() const {
|
||||
return llvm::hash_combine(loc.getOpaqueValue(),
|
||||
static_cast<int>(kind),
|
||||
isForeign, defaultArgIndex);
|
||||
friend llvm::hash_code hash_value(const SILDeclRef &ref) {
|
||||
return llvm::hash_combine(ref.loc.getOpaqueValue(),
|
||||
static_cast<int>(ref.kind),
|
||||
ref.isForeign, ref.defaultArgIndex);
|
||||
}
|
||||
|
||||
bool operator==(SILDeclRef rhs) const {
|
||||
|
||||
Reference in New Issue
Block a user