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:
Chris Lattner
2013-07-15 16:48:56 +00:00
parent c5a2ac7b96
commit 12872e5190
9 changed files with 60 additions and 135 deletions

View File

@@ -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) {
}