diff options
Diffstat (limited to 'src/main/scala/firrtl/options/phases/ConvertLegacyAnnotations.scala')
| -rw-r--r-- | src/main/scala/firrtl/options/phases/ConvertLegacyAnnotations.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/options/phases/ConvertLegacyAnnotations.scala b/src/main/scala/firrtl/options/phases/ConvertLegacyAnnotations.scala new file mode 100644 index 00000000..37667160 --- /dev/null +++ b/src/main/scala/firrtl/options/phases/ConvertLegacyAnnotations.scala @@ -0,0 +1,14 @@ +// See LICENSE for license details. + +package firrtl.options.phases + +import firrtl.AnnotationSeq +import firrtl.annotations.LegacyAnnotation +import firrtl.options.Phase + +/** Convert any [[LegacyAnnotation]]s to non-legacy variants */ +object ConvertLegacyAnnotations extends Phase { + + def transform(annotations: AnnotationSeq): AnnotationSeq = LegacyAnnotation.convertLegacyAnnos(annotations) + +} |
