@@ -2213,35 +2213,6 @@ class AllocStackInst final
2213
2213
DeallocStackInst *getSingleDeallocStack () const ;
2214
2214
};
2215
2215
2216
- // / AllocVectorInst - Like AllocStackInst, but allocates a vector of elements.
2217
- class AllocVectorInst final
2218
- : public UnaryInstructionWithTypeDependentOperandsBase<
2219
- SILInstructionKind::AllocVectorInst, AllocVectorInst, AllocationInst> {
2220
- friend SILBuilder;
2221
-
2222
- AllocVectorInst (SILDebugLocation loc, SILValue capacity, SILType resultType,
2223
- ArrayRef<SILValue> typeDependentOperands)
2224
- : UnaryInstructionWithTypeDependentOperandsBase(loc, capacity,
2225
- typeDependentOperands,
2226
- resultType) {
2227
- }
2228
-
2229
- static AllocVectorInst *create (SILDebugLocation Loc, SILValue capacity,
2230
- SILType elementType, SILFunction &F);
2231
-
2232
- static AllocVectorInst *createInInitializer (SILDebugLocation Loc,
2233
- SILValue capacity, SILType elementType, SILModule &M);
2234
-
2235
- public:
2236
- // / getElementType - Get the type of the allocated memory (as opposed to the
2237
- // / type of the instruction itself, which will be an address type).
2238
- SILType getElementType () const {
2239
- return getType ().getObjectType ();
2240
- }
2241
-
2242
- SILValue getCapacity () const { return getOperand (); }
2243
- };
2244
-
2245
2216
// / AllocPackInst - This represents the allocation of a value pack
2246
2217
// / in stack memory. The memory is provided uninitialized.
2247
2218
class AllocPackInst final
0 commit comments