From ba2be50f42c1ec760decc22cfda73fbd39113b53 Mon Sep 17 00:00:00 2001 From: Kevin Laeufer Date: Thu, 30 Jul 2020 16:56:54 -0700 Subject: ir: use Serializer.serialize where possible (#1809) * ir: use Serializer.serialize where possible * ir.Serializer: serialize MultiInfo correctly * ir.Serializer: empty body needs to result in a skip statement The firrtl grammar requires at least one statement. * ir.Serializer: correctly serialize fixed point types and literals * Serializer: change Seq -> Iterable in order to be Scala 2.13 compatible--- src/main/scala/firrtl/passes/memlib/MemIR.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/scala/firrtl/passes') diff --git a/src/main/scala/firrtl/passes/memlib/MemIR.scala b/src/main/scala/firrtl/passes/memlib/MemIR.scala index 2781f1e2..3731ea86 100644 --- a/src/main/scala/firrtl/passes/memlib/MemIR.scala +++ b/src/main/scala/firrtl/passes/memlib/MemIR.scala @@ -39,7 +39,7 @@ case class DefAnnotatedMemory( memRef: Option[(String, String)] /* (Module, Mem) */ //pins: Seq[Pin], ) extends Statement with IsDeclaration { - def serialize: String = this.toMem.serialize + override def serialize: String = this.toMem.serialize def mapStmt(f: Statement => Statement): Statement = this def mapExpr(f: Expression => Expression): Statement = this def mapType(f: Type => Type): Statement = this.copy(dataType = f(dataType)) -- cgit v1.2.3