aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/passes/Uniquify.scala
diff options
context:
space:
mode:
authorJack2016-05-09 23:55:47 -0700
committerJack Koenig2016-06-10 16:33:01 -0700
commitc1504e2179e509632fa8d9ab44d87191b46cf851 (patch)
tree80e520a1b193590c3ae84e5b6bf81728c840ab85 /src/main/scala/firrtl/passes/Uniquify.scala
parent26e33c343332c2f65bb45bc17b40a9cb7d22e2fd (diff)
API Cleanup - Expression
trait Expression -> abstract class Expression Ref -> Reference abbrev. exp -> expr Add abstract class Literal UIntValue -> UIntLiteral extends Literal SIntValue -> SIntLiteral extends Literal
Diffstat (limited to 'src/main/scala/firrtl/passes/Uniquify.scala')
-rw-r--r--src/main/scala/firrtl/passes/Uniquify.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/firrtl/passes/Uniquify.scala b/src/main/scala/firrtl/passes/Uniquify.scala
index 2fdc3454..3ad0c3dc 100644
--- a/src/main/scala/firrtl/passes/Uniquify.scala
+++ b/src/main/scala/firrtl/passes/Uniquify.scala
@@ -192,7 +192,7 @@ object Uniquify extends Pass {
val (subExp, subMap) = rec(e.exp, m)
val index = uniquifyNamesExp(e.index, map)
(WSubAccess(subExp, index, e.tpe, e.gender), subMap)
- case (_: UIntValue | _: SIntValue) => (exp, m)
+ case (_: UIntLiteral | _: SIntLiteral) => (exp, m)
case (_: Mux | _: ValidIf | _: DoPrim) =>
(exp map ((e: Expression) => uniquifyNamesExp(e, map)), m)
}
@@ -267,7 +267,7 @@ object Uniquify extends Pass {
uniquifyNamesExp(e, nameMap.toMap)
case e: Mux => e map (uniquifyExp)
case e: ValidIf => e map (uniquifyExp)
- case (_: UIntValue | _: SIntValue) => e
+ case (_: UIntLiteral | _: SIntLiteral) => e
case e: DoPrim => e map (uniquifyExp)
}