Skip to content

Commit b12e280

Browse files
committed
IRGen: Remove unused DestructorKind and ConstructorKind
1 parent f197c13 commit b12e280

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

lib/IRGen/IRGen.h

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -204,26 +204,6 @@ enum class SymbolReferenceKind : uint8_t {
204204
Far_Relative_Indirectable,
205205
};
206206

207-
/// Destructor variants.
208-
enum class DestructorKind : uint8_t {
209-
/// A deallocating destructor destroys the object and deallocates
210-
/// the memory associated with it.
211-
Deallocating,
212-
213-
/// A destroying destructor destroys the object but does not
214-
/// deallocate the memory associated with it.
215-
Destroying
216-
};
217-
218-
/// Constructor variants.
219-
enum class ConstructorKind : uint8_t {
220-
/// An allocating constructor allocates an object and initializes it.
221-
Allocating,
222-
223-
/// An initializing constructor just initializes an existing object.
224-
Initializing
225-
};
226-
227207
/// An initial value for a definition of an llvm::GlobalVariable.
228208
class ConstantInit {
229209
llvm::PointerUnion<ConstantInitFuture, llvm::Type*> Data;
@@ -446,7 +426,7 @@ inline Alignment Alignment::alignmentAtOffset(Size S) const {
446426
return *this;
447427
}
448428

449-
/// Get this alignment asx a Size value.
429+
/// Get this alignment as a Size value.
450430
inline Size Alignment::asSize() const {
451431
return Size(getValue());
452432
}

0 commit comments

Comments
 (0)