diff options
Diffstat (limited to 'src/main/scala/firrtl/options/phases/DeletedWrapper.scala')
| -rw-r--r-- | src/main/scala/firrtl/options/phases/DeletedWrapper.scala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/options/phases/DeletedWrapper.scala b/src/main/scala/firrtl/options/phases/DeletedWrapper.scala index 76ff21ad..3661d836 100644 --- a/src/main/scala/firrtl/options/phases/DeletedWrapper.scala +++ b/src/main/scala/firrtl/options/phases/DeletedWrapper.scala @@ -4,7 +4,7 @@ package firrtl.options.phases import firrtl.AnnotationSeq import firrtl.annotations.DeletedAnnotation -import firrtl.options.{Phase, PreservesAll, Translator} +import firrtl.options.{Phase, Translator} import scala.collection.mutable @@ -12,13 +12,14 @@ import scala.collection.mutable * wrapped [[firrtl.options.Phase Phase]] will be added as [[firrtl.annotations.DeletedAnnotation DeletedAnnotation]]s. * @param p a [[firrtl.options.Phase Phase]] to wrap */ -class DeletedWrapper(p: Phase) extends Phase with Translator[AnnotationSeq, (AnnotationSeq, AnnotationSeq)] - with PreservesAll[Phase] { +class DeletedWrapper(p: Phase) extends Phase with Translator[AnnotationSeq, (AnnotationSeq, AnnotationSeq)] { override def prerequisites = Seq.empty override def optionalPrerequisiteOf = Seq.empty + override def invalidates(a: Phase) = false + override lazy val name: String = p.name def aToB(a: AnnotationSeq): (AnnotationSeq, AnnotationSeq) = (a, a) |
