diff options
| author | Jack Koenig | 2021-12-17 10:07:25 -0800 |
|---|---|---|
| committer | GitHub | 2021-12-17 18:07:25 +0000 |
| commit | 37c8528cfed4395924820b54498ef761ded17393 (patch) | |
| tree | 4d60a7a62aa77f75b714840f82b858d2fa192db1 /src/test/scala/firrtl/testutils | |
| parent | 6b82bcf6690e38ff472a39eaae7e6375ff7085e4 (diff) | |
Deprecate all mutable methods on RenameMap (#2444)
* Add renamemap.MutableRenameMap which includes these methods without
deprecation
* Deprecate Stringly typed RenameMap APIs which were accidentally
undeprecated a while ago
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Diffstat (limited to 'src/test/scala/firrtl/testutils')
| -rw-r--r-- | src/test/scala/firrtl/testutils/FirrtlSpec.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/scala/firrtl/testutils/FirrtlSpec.scala b/src/test/scala/firrtl/testutils/FirrtlSpec.scala index 53a8e1e3..f37f6860 100644 --- a/src/test/scala/firrtl/testutils/FirrtlSpec.scala +++ b/src/test/scala/firrtl/testutils/FirrtlSpec.scala @@ -19,6 +19,7 @@ import firrtl.stage.{FirrtlFileAnnotation, InfoModeAnnotation, RunFirrtlTransfor import firrtl.analyses.{GetNamespace, ModuleNamespaceAnnotation} import firrtl.annotations._ import firrtl.transforms.{DontTouchAnnotation, NoDedupAnnotation, RenameModules} +import firrtl.renamemap.MutableRenameMap import firrtl.util.BackendCompilationUtilities import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers @@ -64,7 +65,7 @@ object RenameTop extends Transform { case m => m } - val renames = RenameMap() + val renames = MutableRenameMap() renames.record(CircuitTarget(c.main), CircuitTarget(newTopName)) state.copy(circuit = c.copy(main = newTopName, modules = modulesx), renames = Some(renames)) } |
