mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[IRGen] Remove unnecessary default params (#63968)
Also adds type layout strings to analyze_code_size.py
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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')],
|
||||
|
||||
Reference in New Issue
Block a user