aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/passes/PadWidths.scala
diff options
context:
space:
mode:
authorDonggyu Kim2016-08-30 16:05:52 -0700
committerDonggyu Kim2016-09-07 11:54:02 -0700
commitb0d28b951ac2d443570135c4788e785756aeb457 (patch)
treef9099ebb1ce20d1f3bdb573b9af15ab61cbf2c86 /src/main/scala/firrtl/passes/PadWidths.scala
parent6d32a446e25ae33f49398f4f7693596cb7be4ebd (diff)
remove Utils.tpe
Diffstat (limited to 'src/main/scala/firrtl/passes/PadWidths.scala')
-rw-r--r--src/main/scala/firrtl/passes/PadWidths.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/passes/PadWidths.scala b/src/main/scala/firrtl/passes/PadWidths.scala
index 0cabc293..f2117761 100644
--- a/src/main/scala/firrtl/passes/PadWidths.scala
+++ b/src/main/scala/firrtl/passes/PadWidths.scala
@@ -2,7 +2,7 @@ package firrtl
package passes
import firrtl.Mappers.{ExpMap, StmtMap}
-import firrtl.Utils.{tpe, long_BANG}
+import firrtl.Utils.long_BANG
import firrtl.PrimOps._
import firrtl.ir._
@@ -10,10 +10,10 @@ import firrtl.ir._
object PadWidths extends Pass {
def name = "Pad Widths"
private def width(t: Type): Int = long_BANG(t).toInt
- private def width(e: Expression): Int = width(tpe(e))
+ private def width(e: Expression): Int = width(e.tpe)
// Returns an expression with the correct integer width
private def fixup(i: Int)(e: Expression) = {
- def tx = tpe(e) match {
+ def tx = e.tpe match {
case t: UIntType => UIntType(IntWidth(i))
case t: SIntType => SIntType(IntWidth(i))
// default case should never be reached