From c7eb1570dfb1c7701ea32d1209982a053f3cec1d Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Tue, 27 Feb 2018 18:07:11 -0800 Subject: Refactor Annotations (#721) - Old Annotation renamed to deprecated LegacyAnnotation - Annotation is now a trait that can be extended - New JsonProtocol for Annotation [de]serialization - Replace AnnotationMap with AnnotationSeq - Deprecate Transform.getMyAnnotations - Update Transforms - Turn on deprecation warnings - Remove deprecated Driver.compile - Make AnnotationTests abstract with Legacy and Json subclasses - Add functionality to convert LegacyAnnotations of built-in annos This will give a noisy warning and is more of a best effort than a robust solution. Fixes #475 Closes #609--- src/test/scala/firrtlTests/DCETests.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/scala/firrtlTests/DCETests.scala') diff --git a/src/test/scala/firrtlTests/DCETests.scala b/src/test/scala/firrtlTests/DCETests.scala index e28ab432..97c1c146 100644 --- a/src/test/scala/firrtlTests/DCETests.scala +++ b/src/test/scala/firrtlTests/DCETests.scala @@ -20,7 +20,7 @@ class DCETests extends FirrtlFlatSpec { new SimpleTransform(RemoveEmpty, LowForm) ) private def exec(input: String, check: String, annos: Seq[Annotation] = List.empty): Unit = { - val state = CircuitState(parse(input), ChirrtlForm, Some(AnnotationMap(annos))) + val state = CircuitState(parse(input), ChirrtlForm, annos) val finalState = (new LowFirrtlCompiler).compileAndEmit(state, customTransforms) val res = finalState.getEmittedCircuit.value // Convert to sets for comparison -- cgit v1.2.3