Skip to content

Commit a0272e1

Browse files
authored
[IRGen] Remove unnecessary default params (#63968)
Also adds type layout strings to analyze_code_size.py
1 parent 8a930ca commit a0272e1

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

lib/IRGen/GenEnum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ class EnumImplStrategy {
459459
virtual TypeLayoutEntry
460460
*buildTypeLayoutEntry(IRGenModule &IGM,
461461
SILType T,
462-
bool useStructLayouts = false) const = 0;
462+
bool useStructLayouts) const = 0;
463463

464464
virtual bool isSingleRetainablePointer(ResilienceExpansion expansion,
465465
ReferenceCounting *rc) const {

lib/IRGen/IRGenModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ class IRGenModule {
10151015
CanSILFunctionType funcTy);
10161016

10171017
const TypeLayoutEntry
1018-
&getTypeLayoutEntry(SILType T, bool useStructLayouts = false);
1018+
&getTypeLayoutEntry(SILType T, bool useStructLayouts);
10191019

10201020
const clang::ASTContext &getClangASTContext() {
10211021
assert(ClangASTContext &&

lib/IRGen/ScalarTypeInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class SingleScalarTypeInfoWithTypeLayout
254254
TypeLayoutEntry *
255255
buildTypeLayoutEntry(IRGenModule &IGM,
256256
SILType T,
257-
bool useStructLayouts = false) const override {
257+
bool useStructLayouts) const override {
258258
if (!useStructLayouts) {
259259
return IGM.typeLayoutCache.getOrCreateTypeInfoBasedEntry(*this, T);
260260
}

lib/IRGen/TypeInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ class TypeInfo {
325325
virtual TypeLayoutEntry
326326
*buildTypeLayoutEntry(IRGenModule &IGM,
327327
SILType T,
328-
bool useStructLayouts = false) const = 0;
328+
bool useStructLayouts) const = 0;
329329

330330
/// Allocate a variable of this type on the stack.
331331
virtual StackAddress allocateStack(IRGenFunction &IGF, SILType T,

utils/analyze_code_size.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def __init__(self):
154154
['@objc thunk', re.compile(r'@objc')],
155155
['@nonobjc thunk', re.compile(r'@nonobjc')],
156156
['Value witness', re.compile(r'.*value witness for')],
157+
['Type layout string', re.compile(r'.*type_layout_string')],
157158
['Block copy helper', re.compile(r'_block_copy_helper')],
158159
['Block destroy helper', re.compile(r'_block_destroy_helper')],
159160
['Block literal global', re.compile(r'___block_literal_global')],

0 commit comments

Comments
 (0)