aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/options/phases/ConvertLegacyAnnotations.scala
blob: 7ff05370db0a83ad1e6b7b73f788447950f831d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// See LICENSE for license details.

package firrtl.options.phases

import firrtl.AnnotationSeq
import firrtl.annotations.LegacyAnnotation
import firrtl.options.Phase

/** Convert any [[firrtl.annotations.LegacyAnnotation LegacyAnnotation]]s to non-legacy variants */
object ConvertLegacyAnnotations extends Phase {

  def transform(annotations: AnnotationSeq): AnnotationSeq = LegacyAnnotation.convertLegacyAnnos(annotations)

}