File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,14 @@ class IndirectSlot {
159
159
if (hasAddress ()) return getAddress ();
160
160
return SGF.emitTemporaryAllocation (loc, getType ());
161
161
}
162
+ void print (llvm::raw_ostream &os) const {
163
+ if (hasAddress ())
164
+ os << " Address: " << *getAddress ();
165
+ else
166
+ os << " Type: " << getType ();
167
+ }
168
+
169
+ SWIFT_DEBUG_DUMP { print (llvm::dbgs ()); llvm::dbgs () << ' \n ' ; }
162
170
};
163
171
164
172
} // end anonymous namespace
@@ -1271,6 +1279,13 @@ class ParamInfo {
1271
1279
(isIndirectFormalParameter (convention) &&
1272
1280
SGF.silConv .useLoweredAddresses ());
1273
1281
}
1282
+
1283
+ void print (llvm::raw_ostream &os) const {
1284
+ os << " ParamInfo. Slot: " ;
1285
+ slot.print (os);
1286
+ };
1287
+
1288
+ SWIFT_DEBUG_DUMP { print (llvm::dbgs ()); llvm::dbgs () << ' \n ' ; }
1274
1289
};
1275
1290
1276
1291
// / Given a list of inputs that are suited to the parameters of one
You can’t perform that action at this time.
0 commit comments