aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/transforms
diff options
context:
space:
mode:
authorJiuyang Liu2020-11-10 00:12:06 +0000
committerGitHub2020-11-10 00:12:06 +0000
commit92af63c599fc480f6480ee22f23763f54881085f (patch)
treeb4fde701d44a0d5a0d44d3a05489a61481762a7f /src/main/scala/firrtl/transforms
parentfe95544d573fff9bb114b3302986aa746e1f4763 (diff)
Refactor emiter (#1879)
* split big Emitter to submodules. * fix all deprecated warning. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Diffstat (limited to 'src/main/scala/firrtl/transforms')
-rw-r--r--src/main/scala/firrtl/transforms/BlackBoxSourceHelper.scala5
-rw-r--r--src/main/scala/firrtl/transforms/InferResets.scala4
2 files changed, 6 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/transforms/BlackBoxSourceHelper.scala b/src/main/scala/firrtl/transforms/BlackBoxSourceHelper.scala
index 12f33183..d1c0a134 100644
--- a/src/main/scala/firrtl/transforms/BlackBoxSourceHelper.scala
+++ b/src/main/scala/firrtl/transforms/BlackBoxSourceHelper.scala
@@ -182,7 +182,10 @@ object BlackBoxSourceHelper {
val defaultFileListName = "firrtl_black_box_resource_files.f"
- @deprecated("Renamed to defaultFileListName, as the file list name may now be changed with an annotation", "1.2")
+ @deprecated(
+ "Renamed to defaultFileListName, as the file list name may now be changed with an annotation",
+ "FIRRTL 1.2"
+ )
def fileListName = defaultFileListName
def writeTextToFile(text: String, file: File): Unit = {
diff --git a/src/main/scala/firrtl/transforms/InferResets.scala b/src/main/scala/firrtl/transforms/InferResets.scala
index 0f5fb608..4c6ffde2 100644
--- a/src/main/scala/firrtl/transforms/InferResets.scala
+++ b/src/main/scala/firrtl/transforms/InferResets.scala
@@ -16,9 +16,9 @@ import scala.collection.mutable
import scala.util.Try
object InferResets {
- @deprecated("This is no longer in use and will be removed", "1.3")
+ @deprecated("This is no longer in use and will be removed", "FIRRTL 1.3")
final class DifferingDriverTypesException private (msg: String) extends PassException(msg)
- @deprecated("This is no longer in use and will be removed", "1.3")
+ @deprecated("This is no longer in use and will be removed", "FIRRTL 1.3")
object DifferingDriverTypesException {
def apply(target: ReferenceTarget, tpes: Seq[(Type, Seq[TypeDriver])]): DifferingDriverTypesException = {
val xs = tpes.map { case (t, ds) => s"${ds.map(_.target().serialize).mkString(", ")} of type ${t.serialize}" }