diff options
| author | Adam Izraelevitz | 2016-11-23 11:57:02 -0800 |
|---|---|---|
| committer | Jack Koenig | 2016-11-23 11:57:02 -0800 |
| commit | 66d3ec0498a73319a914eeffcb4e0b1109b5f4c5 (patch) | |
| tree | 325066fd05cc72b544d3b4d78d646e1a864119f3 /src/main/scala/firrtl/transforms | |
| parent | 9a967a27aa8bb51f4b62969d2889f9a9caa48e31 (diff) | |
Stringified annotations (#367)
Restricts annotations to be string-based (and thus less typesafe)
Makes annotations more easily serializable and interact with Chisel
Diffstat (limited to 'src/main/scala/firrtl/transforms')
| -rw-r--r-- | src/main/scala/firrtl/transforms/Dedup.scala | 8 |
1 files changed, 1 insertions, 7 deletions
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 |
