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 {
159159 if (hasAddress ()) return getAddress ();
160160 return SGF.emitTemporaryAllocation (loc, getType ());
161161 }
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 ' ; }
162170};
163171
164172} // end anonymous namespace
@@ -1271,6 +1279,13 @@ class ParamInfo {
12711279 (isIndirectFormalParameter (convention) &&
12721280 SGF.silConv .useLoweredAddresses ());
12731281 }
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 ' ; }
12741289};
12751290
12761291// / 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