diff options
| author | Schuyler Eldridge | 2018-11-08 20:29:55 -0500 |
|---|---|---|
| committer | Schuyler Eldridge | 2018-11-09 12:11:35 -0500 |
| commit | 622939aec57b112994ca5e3e419ffbbd673071a3 (patch) | |
| tree | 943468917297588cec9ee8d77da12ebfdfea451f | |
| parent | 75284395ba7ef285daefd2da38e720590b465ad7 (diff) | |
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 <schuyler.eldridge@ibm.com>
| -rw-r--r-- | src/main/scala/firrtl/package.scala | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ -8,5 +9,8 @@ package object firrtl { /* 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 } |
