[IRGen] Remove unnecessary default params (#63968)

Also adds type layout strings to analyze_code_size.py
This commit is contained in:
Dario Rexin
2023-02-28 14:52:14 -08:00
committed by GitHub
parent 8a930ca7c7
commit a0272e163e
5 changed files with 5 additions and 4 deletions

View File

@@ -459,7 +459,7 @@ public:
virtual TypeLayoutEntry
*buildTypeLayoutEntry(IRGenModule &IGM,
SILType T,
bool useStructLayouts = false) const = 0;
bool useStructLayouts) const = 0;
virtual bool isSingleRetainablePointer(ResilienceExpansion expansion,
ReferenceCounting *rc) const {

View File

@@ -1015,7 +1015,7 @@ public:
CanSILFunctionType funcTy);
const TypeLayoutEntry
&getTypeLayoutEntry(SILType T, bool useStructLayouts = false);
&getTypeLayoutEntry(SILType T, bool useStructLayouts);
const clang::ASTContext &getClangASTContext() {
assert(ClangASTContext &&

View File

@@ -254,7 +254,7 @@ public:
TypeLayoutEntry *
buildTypeLayoutEntry(IRGenModule &IGM,
SILType T,
bool useStructLayouts = false) const override {
bool useStructLayouts) const override {
if (!useStructLayouts) {
return IGM.typeLayoutCache.getOrCreateTypeInfoBasedEntry(*this, T);
}

View File

@@ -325,7 +325,7 @@ public:
virtual TypeLayoutEntry
*buildTypeLayoutEntry(IRGenModule &IGM,
SILType T,
bool useStructLayouts = false) const = 0;
bool useStructLayouts) const = 0;
/// Allocate a variable of this type on the stack.
virtual StackAddress allocateStack(IRGenFunction &IGF, SILType T,

View File

@@ -154,6 +154,7 @@ class Categories(object):
['@objc thunk', re.compile(r'@objc')],
['@nonobjc thunk', re.compile(r'@nonobjc')],
['Value witness', re.compile(r'.*value witness for')],
['Type layout string', re.compile(r'.*type_layout_string')],
['Block copy helper', re.compile(r'_block_copy_helper')],
['Block destroy helper', re.compile(r'_block_destroy_helper')],
['Block literal global', re.compile(r'___block_literal_global')],