File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ struct AccessMarkerElimination {
63
63
: Mod(&F->getModule ()), F(F), isFullElimination(isFullElimination) {}
64
64
65
65
SILBasicBlock::iterator eraseInst (SILInstruction *inst) {
66
+ DEBUG (llvm::dbgs () << " Erasing access marker: " << *inst);
66
67
removedAny = true ;
67
68
return inst->getParent ()->erase (inst);
68
69
};
@@ -183,6 +184,8 @@ bool AccessMarkerElimination::stripMarkers() {
183
184
// Implement a SILModule::SILFunctionBodyCallback that strips all access
184
185
// markers from newly deserialized function bodies.
185
186
static void prepareSILFunctionForOptimization (ModuleDecl *, SILFunction *F) {
187
+ DEBUG (llvm::dbgs () << " Stripping all markers in: " << F->getName () << " \n " );
188
+
186
189
AccessMarkerElimination (F, /* isFullElimination=*/ true ).stripMarkers ();
187
190
}
188
191
You can’t perform that action at this time.
0 commit comments