From 66d3ec0498a73319a914eeffcb4e0b1109b5f4c5 Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Wed, 23 Nov 2016 11:57:02 -0800 Subject: Stringified annotations (#367) Restricts annotations to be string-based (and thus less typesafe) Makes annotations more easily serializable and interact with Chisel--- src/main/scala/firrtl/transforms/Dedup.scala | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/main/scala/firrtl/transforms') diff --git a/src/main/scala/firrtl/transforms/Dedup.scala b/src/main/scala/firrtl/transforms/Dedup.scala index a9d3b4c9..0d9be831 100644 --- a/src/main/scala/firrtl/transforms/Dedup.scala +++ b/src/main/scala/firrtl/transforms/Dedup.scala @@ -5,18 +5,12 @@ package transforms import firrtl.ir._ import firrtl.Mappers._ -import firrtl.Annotations._ +import firrtl.annotations._ import firrtl.passes.PassException // Datastructures import scala.collection.mutable -// Tags an annotation to be consumed by this pass -case class DedupAnnotation(target: Named) extends Annotation with Loose with Unstable { - def duplicate(n: Named) = this.copy(target=n) - def transform = classOf[DedupModules] -} - // Only use on legal Firrtl. Specifically, the restriction of // instance loops must have been checked, or else this pass can // infinitely recurse -- cgit v1.2.3