From 622939aec57b112994ca5e3e419ffbbd673071a3 Mon Sep 17 00:00:00 2001 From: Schuyler Eldridge Date: Thu, 8 Nov 2018 20:29:55 -0500 Subject: Fix bug in TargetDirAnnotation compatibility TargetDirAnnotation was moved from firrtl to firrtl.stage. However, this is only aliased as a val in the firrtl package object. This also needs to be type aliased for matching against a type. This fixes a bug I ran across in the visualizer. Signed-off-by: Schuyler Eldridge --- src/main/scala/firrtl/package.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/main/scala/firrtl/package.scala b/src/main/scala/firrtl/package.scala index 9b7fce38..bc23049c 100644 --- a/src/main/scala/firrtl/package.scala +++ b/src/main/scala/firrtl/package.scala @@ -1,3 +1,4 @@ +// See LICENSE for license details. import firrtl.AnnotationSeq import firrtl.annotations.Annotation @@ -7,6 +8,9 @@ package object firrtl { implicit def annoSeqToSeq(as: AnnotationSeq): Seq[Annotation] = as.underlying /* Options as annotations compatibility items */ + @deprecated("Use firrtl.stage.TargetDirAnnotation", "3.2") + type TargetDirAnnotation = firrtl.stage.TargetDirAnnotation + @deprecated("Use firrtl.stage.TargetDirAnnotation", "3.2") val TargetDirAnnotation = firrtl.stage.TargetDirAnnotation } -- cgit v1.2.3