mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
remove the allocation kind enum from alloc_var/dealloc_var/alloc_ref. There is
only one kind now: stack. alloc_var is just for stack memory now. Swift SVN r6256
This commit is contained in:
@@ -124,12 +124,8 @@ ArrayRef<Operand> SILInstruction::getAllOperands() const {
|
||||
// SILInstruction Subclasses
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
AllocVarInst::AllocVarInst(SILLocation loc, AllocKind allocKind,
|
||||
SILType elementType,
|
||||
SILFunction &F)
|
||||
: AllocInst(ValueKind::AllocVarInst, loc,
|
||||
elementType.getAddressType(),
|
||||
allocKind) {
|
||||
AllocVarInst::AllocVarInst(SILLocation loc, SILType elementType, SILFunction &F)
|
||||
: AllocInst(ValueKind::AllocVarInst, loc, elementType.getAddressType()) {
|
||||
}
|
||||
|
||||
/// getDecl - Return the underlying variable declaration associated with this
|
||||
@@ -142,12 +138,8 @@ VarDecl *AllocVarInst::getDecl() const {
|
||||
}
|
||||
}
|
||||
|
||||
AllocRefInst::AllocRefInst(SILLocation loc, AllocKind allocKind,
|
||||
SILType elementType,
|
||||
SILFunction &F)
|
||||
: AllocInst(ValueKind::AllocRefInst, loc,
|
||||
elementType,
|
||||
allocKind) {
|
||||
AllocRefInst::AllocRefInst(SILLocation loc, SILType elementType, SILFunction &F)
|
||||
: AllocInst(ValueKind::AllocRefInst, loc, elementType) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user