aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/annotations/Annotation.scala
diff options
context:
space:
mode:
authorJack Koenig2019-04-26 13:10:44 -0700
committerGitHub2019-04-26 13:10:44 -0700
commita7cf6ff3416a11088d811a435ba71fd36b191fb4 (patch)
tree79e2e8c5753903ca6d14e9b952c26a07442bd980 /src/main/scala/firrtl/annotations/Annotation.scala
parent99ae1d6649f1731c5dec2098b10733735232b72c (diff)
parentef8f06f23b9ee6cf86de2450752dfd0fcd32da80 (diff)
Merge pull request #1005 from freechipsproject/f764.7
Stage/Phase
Diffstat (limited to 'src/main/scala/firrtl/annotations/Annotation.scala')
-rw-r--r--src/main/scala/firrtl/annotations/Annotation.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/scala/firrtl/annotations/Annotation.scala b/src/main/scala/firrtl/annotations/Annotation.scala
index 25e361f3..873bd8fe 100644
--- a/src/main/scala/firrtl/annotations/Annotation.scala
+++ b/src/main/scala/firrtl/annotations/Annotation.scala
@@ -6,6 +6,7 @@ package annotations
import net.jcazevedo.moultingyaml._
import firrtl.annotations.AnnotationYamlProtocol._
import firrtl.Utils.throwInternalError
+import firrtl.options.StageUtils
import scala.collection.mutable
@@ -190,7 +191,7 @@ private[firrtl] object LegacyAnnotation {
case other => other
}
// scalastyle:on
- def convertLegacyAnnos(annos: Seq[Annotation]): Seq[Annotation] = {
+ def convertLegacyAnnos(annos: AnnotationSeq): AnnotationSeq = {
var warned: Boolean = false
annos.map {
case legacy: LegacyAnnotation =>
@@ -198,7 +199,7 @@ private[firrtl] object LegacyAnnotation {
if (!warned && (annox ne legacy)) {
val msg = s"A LegacyAnnotation was automatically converted.\n" + (" "*9) +
"This functionality will soon be removed. Please migrate to new annotations."
- Driver.dramaticWarning(msg)
+ StageUtils.dramaticWarning(msg)
warned = true
}
annox