Run scalafmt after scala version update

This commit is contained in:
Tynan McAuley
2023-02-22 22:05:31 -08:00
parent 4e398da790
commit 20587cfd40
3 changed files with 12 additions and 10 deletions

View File

@@ -36,13 +36,16 @@ private class GenerateModelStageMain(annotations: AnnotationSeq) extends LazyLog
} }
def executeStageMain(): Unit = { def executeStageMain(): Unit = {
val appendedAnnotations = annotations.filter(_ match { val appendedAnnotations = annotations
.filter(_ match {
case CompilerNameAnnotation(_) => true case CompilerNameAnnotation(_) => true
case _ => false case _ => false
}).map(_ match { })
.map(_ match {
case CompilerNameAnnotation("low") => Some(RunFirrtlTransformAnnotation(Dependency[ExtraLowTransforms])) case CompilerNameAnnotation("low") => Some(RunFirrtlTransformAnnotation(Dependency[ExtraLowTransforms]))
case _ => None case _ => None
}).flatten })
.flatten
val annos = new FirrtlStage().execute(Array.empty, annotations ++ appendedAnnotations) val annos = new FirrtlStage().execute(Array.empty, annotations ++ appendedAnnotations)
annos.collectFirst { case FirrtlCircuitAnnotation(circuit) => circuit } match { annos.collectFirst { case FirrtlCircuitAnnotation(circuit) => circuit } match {

View File

@@ -38,8 +38,7 @@ object DuplicateCompilerAnnotation extends HasShellOptions {
longOption = "duplicate-compiler", longOption = "duplicate-compiler",
shortOption = Some("DX"), shortOption = Some("DX"),
toAnnotationSeq = (s: String) => { toAnnotationSeq = (s: String) => {
Seq( Seq(CompilerNameAnnotation(s))
CompilerNameAnnotation(s))
}, },
helpText = "duplicate-compiler", helpText = "duplicate-compiler",
helpValueName = Some("same as --compiler FIRRTL flag") helpValueName = Some("same as --compiler FIRRTL flag")