Skip to content

Commit 8cfb3d2

Browse files
committed
[silgen] Cleanup a few Cleanups dump output.
1 parent 7c5c548 commit 8cfb3d2

File tree

1 file changed

+27
-28
lines changed

1 file changed

+27
-28
lines changed

lib/SILGen/SILGenPack.cpp

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class DeallocPackCleanup : public Cleanup {
3434
void dump(SILGenFunction &) const override {
3535
#ifndef NDEBUG
3636
llvm::errs() << "DeallocPackCleanup\n"
37-
<< "State:" << getState() << "\n"
38-
<< "Addr:" << Addr << "\n";
37+
<< "State: " << getState() << "\n"
38+
<< "Addr: " << Addr << "\n";
3939
#endif
4040
}
4141
};
@@ -59,9 +59,8 @@ class DestroyPackCleanup : public Cleanup {
5959
void dump(SILGenFunction &) const override {
6060
#ifndef NDEBUG
6161
llvm::errs() << "DestroyPackCleanup\n"
62-
<< "State:" << getState() << "\n"
63-
<< "Addr:" << Addr << "\n"
64-
<< "FormalPackType:" << FormalPackType
62+
<< "State: " << getState() << "\n"
63+
<< "Addr: " << Addr << "FormalPackType: " << FormalPackType
6564
<< "FirstComponentIndex:" << FirstComponentIndex << "\n";
6665
#endif
6766
}
@@ -93,10 +92,10 @@ class PartialDestroyPackCleanup : public Cleanup {
9392
void dump(SILGenFunction &) const override {
9493
#ifndef NDEBUG
9594
llvm::errs() << "PartialDestroyPackCleanup\n"
96-
<< "State:" << getState() << "\n"
97-
<< "Addr:" << Addr << "FormalPackType:" << FormalPackType
95+
<< "State: " << getState() << "\n"
96+
<< "Addr: " << Addr << "FormalPackType: " << FormalPackType
9897
<< "\n"
99-
<< "ComponentIndex:" << PackComponentIndex << "\n"
98+
<< "ComponentIndex: " << PackComponentIndex << "\n"
10099
<< "LimitWithinComponent: ";
101100
if (LimitWithinComponent)
102101
llvm::errs() << LimitWithinComponent;
@@ -132,11 +131,11 @@ class PartialDestroyRemainingPackCleanup : public Cleanup {
132131
void dump(SILGenFunction &) const override {
133132
#ifndef NDEBUG
134133
llvm::errs() << "PartialDestroyRemainingPackCleanup\n"
135-
<< "State:" << getState() << "\n"
136-
<< "Addr:" << Addr << "\n"
137-
<< "FormalPackType:" << FormalPackType << "\n"
138-
<< "ComponentIndex:" << ComponentIndex << "\n"
139-
<< "CurrentIndexWithinComponent:"
134+
<< "State: " << getState() << "\n"
135+
<< "Addr: " << Addr << "FormalPackType: " << FormalPackType
136+
<< "\n"
137+
<< "ComponentIndex: " << ComponentIndex << "\n"
138+
<< "CurrentIndexWithinComponent: "
140139
<< CurrentIndexWithinComponent << "\n";
141140
#endif
142141
}
@@ -167,11 +166,11 @@ class PartialDestroyTupleCleanup : public Cleanup {
167166
void dump(SILGenFunction &) const override {
168167
#ifndef NDEBUG
169168
llvm::errs() << "PartialDestroyTupleCleanup\n"
170-
<< "State:" << getState() << "\n"
171-
<< "Addr:" << Addr << "\n"
172-
<< "InducedPackType:" << InducedPackType << "\n"
173-
<< "ComponentIndex:" << ComponentIndex << "\n"
174-
<< "LimitWithinComponent:" << LimitWithinComponent << "\n";
169+
<< "State: " << getState() << "\n"
170+
<< "Addr: " << Addr << "InducedPackType: " << InducedPackType
171+
<< "\n"
172+
<< "ComponentIndex: " << ComponentIndex << '\n'
173+
<< "LimitWithinComponent: " << LimitWithinComponent << '\n';
175174
#endif
176175
}
177176
};
@@ -202,12 +201,12 @@ class PartialDestroyRemainingTupleCleanup : public Cleanup {
202201
void dump(SILGenFunction &) const override {
203202
#ifndef NDEBUG
204203
llvm::errs() << "PartialDestroyRemainingTupleCleanup\n"
205-
<< "State:" << getState() << "\n"
206-
<< "Addr:" << Addr << "\n"
207-
<< "InducedPackType:" << InducedPackType << "\n"
208-
<< "ComponentIndex:" << ComponentIndex << "\n"
209-
<< "CurrentIndexWithinComponent:"
210-
<< CurrentIndexWithinComponent << "\n";
204+
<< "State: " << getState() << "\n"
205+
<< "Addr: " << Addr << "InducedPackType: " << InducedPackType
206+
<< "\n"
207+
<< "ComponentIndex: " << ComponentIndex << "\n"
208+
<< "CurrentIndexWithinComponent: "
209+
<< CurrentIndexWithinComponent;
211210
#endif
212211
}
213212
};
@@ -234,10 +233,10 @@ class DestroyRemainingTupleElementsCleanup : public Cleanup {
234233
void dump(SILGenFunction &) const override {
235234
#ifndef NDEBUG
236235
llvm::errs() << "DestroyRemainingTupleElementsCleanup\n"
237-
<< "State:" << getState() << "\n"
238-
<< "Addr:" << Addr << "\n"
239-
<< "InducedPackType:" << InducedPackType << "\n"
240-
<< "ComponentIndex:" << ComponentIndex << "\n";
236+
<< "State: " << getState() << "\n"
237+
<< "Addr: " << Addr << "InducedPackType: " << InducedPackType
238+
<< "\n"
239+
<< "ComponentIndex: " << ComponentIndex << "\n";
241240
#endif
242241
}
243242
};

0 commit comments

Comments
 (0)