Skip to content

Commit 54ac82b

Browse files
committed
IRGen: Remove an unused function
1 parent 2b1bfe3 commit 54ac82b

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

lib/IRGen/StructLayout.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,6 @@ Size irgen::getHeapHeaderSize(IRGenModule &IGM) {
4343
return IGM.getPointerSize() + Size(8);
4444
}
4545

46-
/// Add the fields for the standard heap header to the given layout.
47-
void irgen::addHeapHeaderToLayout(IRGenModule &IGM,
48-
Size &size, Alignment &align,
49-
SmallVectorImpl<llvm::Type*> &fields) {
50-
assert(size.isZero() && align.isOne() && fields.empty());
51-
size = getHeapHeaderSize(IGM);
52-
align = IGM.getPointerAlignment();
53-
fields.push_back(IGM.RefCountedStructTy);
54-
}
55-
5646
/// Perform structure layout on the given types.
5747
StructLayout::StructLayout(IRGenModule &IGM, CanType astTy,
5848
LayoutKind layoutKind,

lib/IRGen/StructLayout.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,6 @@ class StructLayout {
387387

388388
Size getHeapHeaderSize(IRGenModule &IGM);
389389

390-
void addHeapHeaderToLayout(IRGenModule &IGM, Size &size, Alignment &align,
391-
SmallVectorImpl<llvm::Type*> &fieldTypes);
392-
393390
/// Different policies for accessing a physical field.
394391
enum class FieldAccess : uint8_t {
395392
/// Instance variable offsets are constant.

0 commit comments

Comments
 (0)