diff options
| author | chick | 2020-08-14 19:47:53 -0700 |
|---|---|---|
| committer | Jack Koenig | 2020-08-14 19:47:53 -0700 |
| commit | 6fc742bfaf5ee508a34189400a1a7dbffe3f1cac (patch) | |
| tree | 2ed103ee80b0fba613c88a66af854ae9952610ce /src/main/scala/firrtl/transforms/OptimizationAnnotations.scala | |
| parent | b516293f703c4de86397862fee1897aded2ae140 (diff) | |
All of src/ formatted with scalafmt
Diffstat (limited to 'src/main/scala/firrtl/transforms/OptimizationAnnotations.scala')
| -rw-r--r-- | src/main/scala/firrtl/transforms/OptimizationAnnotations.scala | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/scala/firrtl/transforms/OptimizationAnnotations.scala b/src/main/scala/firrtl/transforms/OptimizationAnnotations.scala index ff44afec..5532d0f0 100644 --- a/src/main/scala/firrtl/transforms/OptimizationAnnotations.scala +++ b/src/main/scala/firrtl/transforms/OptimizationAnnotations.scala @@ -1,4 +1,3 @@ - package firrtl package transforms @@ -34,17 +33,19 @@ trait DontTouchAllTargets extends HasDontTouches { self: Annotation => * DCE treats the component as a top-level sink of the circuit */ case class DontTouchAnnotation(target: ReferenceTarget) - extends SingleTargetAnnotation[ReferenceTarget] with DontTouchAllTargets { + extends SingleTargetAnnotation[ReferenceTarget] + with DontTouchAllTargets { def targets = Seq(target) def duplicate(n: ReferenceTarget) = this.copy(n) } object DontTouchAnnotation { - class DontTouchNotFoundException(module: String, component: String) extends PassException( - s"""|Target marked dontTouch ($module.$component) not found! - |It was probably accidentally deleted. Please check that your custom transforms are not responsible and then - |file an issue on GitHub: https://github.com/freechipsproject/firrtl/issues/new""".stripMargin - ) + class DontTouchNotFoundException(module: String, component: String) + extends PassException( + s"""|Target marked dontTouch ($module.$component) not found! + |It was probably accidentally deleted. Please check that your custom transforms are not responsible and then + |file an issue on GitHub: https://github.com/freechipsproject/firrtl/issues/new""".stripMargin + ) def errorNotFound(module: String, component: String) = throw new DontTouchNotFoundException(module, component) @@ -58,7 +59,6 @@ object DontTouchAnnotation { * * @note Unlike [[DontTouchAnnotation]], we don't care if the annotation is deleted */ -case class OptimizableExtModuleAnnotation(target: ModuleName) extends - SingleTargetAnnotation[ModuleName] { +case class OptimizableExtModuleAnnotation(target: ModuleName) extends SingleTargetAnnotation[ModuleName] { def duplicate(n: ModuleName) = this.copy(n) } |
