aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/passes/Passes.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/firrtl/passes/Passes.scala')
-rw-r--r--src/main/scala/firrtl/passes/Passes.scala9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/scala/firrtl/passes/Passes.scala b/src/main/scala/firrtl/passes/Passes.scala
index a6b53e86..de07aaab 100644
--- a/src/main/scala/firrtl/passes/Passes.scala
+++ b/src/main/scala/firrtl/passes/Passes.scala
@@ -22,6 +22,10 @@ trait Pass extends LazyLogging {
def run(c: Circuit): Circuit
}
+// Error handling
+class PassException(message: String) extends Exception(message)
+class PassExceptions(exceptions: Seq[PassException]) extends Exception(exceptions.mkString("\n"))
+
// Trait for migration, trap to Stanza implementation for passes not yet implemented in Scala
trait StanzaPass extends LazyLogging {
def stanzaPass(c: Circuit, n: String): Circuit = {
@@ -63,11 +67,6 @@ object PassUtils extends LazyLogging {
}
// These should be distributed into separate files
-object CheckHighForm extends Pass with StanzaPass {
- def name = "High Form Check"
- def run (c:Circuit): Circuit = stanzaPass(c, "high-form-check")
-}
-
object ToWorkingIR extends Pass {
private var mname = ""
def name = "Working IR"