Skip to content

Commit 434b021

Browse files
committed
Sema: LLVM_DEBUG for CSBindings.cpp
1 parent 6862955 commit 434b021

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Sema/CSBindings.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@
2121
#include "swift/Sema/ConstraintGraph.h"
2222
#include "swift/Sema/ConstraintSystem.h"
2323
#include "llvm/ADT/SetVector.h"
24+
#include "llvm/Support/Debug.h"
2425
#include "llvm/Support/raw_ostream.h"
2526
#include <tuple>
2627

28+
#define DEBUG_TYPE "PotentialBindings"
29+
2730
using namespace swift;
2831
using namespace constraints;
2932
using namespace inference;
@@ -1951,6 +1954,13 @@ void PotentialBindings::retract(Constraint *constraint) {
19511954
if (CS.isRecordingChanges())
19521955
CS.recordChange(SolverTrail::Change::retractedBindings(TypeVar, constraint));
19531956

1957+
LLVM_DEBUG(
1958+
llvm::dbgs() << Constraints.size() << " " << Bindings.size() << " "
1959+
<< Protocols.size() << " " << Literals.size() << " "
1960+
<< AdjacentVars.size() << " " << DelayedBy.size() << " "
1961+
<< SubtypeOf.size() << " " << SupertypeOf.size() << " "
1962+
<< EquivalentTo.size() << "\n");
1963+
19541964
Bindings.erase(
19551965
llvm::remove_if(Bindings,
19561966
[&constraint](const PotentialBinding &binding) {

0 commit comments

Comments
 (0)