mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Lowering] Make the AddressLowering pass functional.
This commit is contained in:
@@ -56,9 +56,16 @@ public:
|
||||
|
||||
static bool isReturnedIndirectlyInSIL(SILType type, SILModule &M);
|
||||
|
||||
static SILModuleConventions getLoweredAddressConventions() {
|
||||
return SILModuleConventions(true);
|
||||
}
|
||||
|
||||
private:
|
||||
bool loweredAddresses;
|
||||
|
||||
SILModuleConventions(bool loweredAddresses)
|
||||
: loweredAddresses(loweredAddresses) {}
|
||||
|
||||
public:
|
||||
SILModuleConventions(const SILModule &M);
|
||||
|
||||
@@ -273,6 +280,8 @@ public:
|
||||
// side. See ApplySite::getCallArgIndexOfFirstAppliedArg().
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
||||
unsigned getSILArgIndexOfFirstIndirectResult() const { return 0; }
|
||||
|
||||
unsigned getSILArgIndexOfFirstParam() const {
|
||||
return getNumIndirectSILResults();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user