Skip to content

Commit

Permalink
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/src/main/java/org/jruby/ir/passes/CompilerPass.java
Original file line number Diff line number Diff line change
@@ -30,6 +30,16 @@ public abstract class CompilerPass {
*/
public abstract String getLabel();

@Override
public int hashCode() {
return getLabel().hashCode();
}

@Override
public boolean equals(Object other) {
return (other != null) && (other instanceof CompilerPass) && (getLabel() == ((CompilerPass)other).getLabel());
}

/**
* Meat of an individual pass. run will call this after dependency
* resolution.

0 comments on commit 71cddf0

Please sign in to comment.