Skip to content

Commit babdbda

Browse files
committed
[NFC] IRGen: Moved constructor to cpp.
1 parent 73ccf1c commit babdbda

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/IRGen/Outlining.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
using namespace swift;
3333
using namespace irgen;
3434

35+
OutliningMetadataCollector::OutliningMetadataCollector(
36+
IRGenFunction &IGF, LayoutIsNeeded_t needsLayout,
37+
DeinitIsNeeded_t needsDeinitTypes)
38+
: IGF(IGF), needsLayout(needsLayout), needsDeinit(needsDeinitTypes) {}
39+
3540
void OutliningMetadataCollector::collectTypeMetadata(SILType ty) {
3641
// If the type has no archetypes, we can emit it from scratch in the callee.
3742
if (!ty.hasArchetype()) {

lib/IRGen/Outlining.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ class OutliningMetadataCollector {
7070

7171
public:
7272
OutliningMetadataCollector(IRGenFunction &IGF, LayoutIsNeeded_t needsLayout,
73-
DeinitIsNeeded_t needsDeinitTypes)
74-
: IGF(IGF), needsLayout(needsLayout), needsDeinit(needsDeinitTypes) {}
73+
DeinitIsNeeded_t needsDeinitTypes);
7574

7675
void collectTypeMetadata(SILType type);
7776

0 commit comments

Comments
 (0)