From d66ff2357e59113ecf48c7d257edff429c4266e0 Mon Sep 17 00:00:00 2001 From: Schuyler Eldridge Date: Fri, 19 Jun 2020 01:11:15 -0400 Subject: Convert PreservesAll to explicit invalidates=false Signed-off-by: Schuyler Eldridge --- src/main/scala/firrtl/options/phases/AddDefaults.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/scala/firrtl/options/phases/AddDefaults.scala') diff --git a/src/main/scala/firrtl/options/phases/AddDefaults.scala b/src/main/scala/firrtl/options/phases/AddDefaults.scala index 79089194..9777aff0 100644 --- a/src/main/scala/firrtl/options/phases/AddDefaults.scala +++ b/src/main/scala/firrtl/options/phases/AddDefaults.scala @@ -3,19 +3,21 @@ package firrtl.options.phases import firrtl.AnnotationSeq -import firrtl.options.{Dependency, Phase, PreservesAll, TargetDirAnnotation} +import firrtl.options.{Dependency, Phase, TargetDirAnnotation} /** Add default annotations for a [[Stage]] * * This currently only adds a [[TargetDirAnnotation]]. This isn't necessary for a [[StageOptionsView]], but downstream * tools may expect a [[TargetDirAnnotation]] to exist. */ -class AddDefaults extends Phase with PreservesAll[Phase] { +class AddDefaults extends Phase { override def prerequisites = Seq(Dependency[GetIncludes], Dependency[ConvertLegacyAnnotations]) override def optionalPrerequisiteOf = Seq.empty + override def invalidates(a: Phase) = false + def transform(annotations: AnnotationSeq): AnnotationSeq = { val td = annotations.collectFirst{ case a: TargetDirAnnotation => a}.isEmpty -- cgit v1.2.3