aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorSchuyler Eldridge2018-12-19 16:51:58 -0500
committerSchuyler Eldridge2018-12-20 11:55:23 -0500
commit0cfd0eb27d2b92796c3173e5a34d8f4e954b2911 (patch)
tree6686c742f864eb2ef3cd748769106ab3b2c89ef2 /src/main
parentf11a0f03511c6380faec7f012eb1314007ca4823 (diff)
Use IdentityTransform to construct NoneCompiler
This changes the NoneCompiler to be a unary sequence consisting of an IdentityTransform. This fixes the inputForm and outputForm inherited methods that implicitly mandate a non-empty transform sequence. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/scala/firrtl/LoweringCompilers.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/LoweringCompilers.scala b/src/main/scala/firrtl/LoweringCompilers.scala
index 350fd433..eab928c2 100644
--- a/src/main/scala/firrtl/LoweringCompilers.scala
+++ b/src/main/scala/firrtl/LoweringCompilers.scala
@@ -2,6 +2,8 @@
package firrtl
+import firrtl.transforms.IdentityTransform
+
sealed abstract class CoreTransform extends SeqTransform
/** This transforms "CHIRRTL", the chisel3 IR, to "Firrtl". Note the resulting
@@ -132,7 +134,7 @@ import firrtl.transforms.BlackBoxSourceHelper
*/
class NoneCompiler extends Compiler {
def emitter = new ChirrtlEmitter
- def transforms: Seq[Transform] = Seq.empty
+ def transforms: Seq[Transform] = Seq(new IdentityTransform(ChirrtlForm))
}
/** Emits input circuit