Skip to content

Commit 4996f67

Browse files
committed
[LowerToHW][nfc] Use public, not friend private
Change two usages of private friend members to use public member functions. This is mildly cleaner and may enable future separation of two structs. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
1 parent 49b5331 commit 4996f67

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/Conversion/FIRRTLToHW/LowerToHW.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -690,13 +690,13 @@ void FIRRTLModuleLowering::runOnOperation() {
690690
});
691691
// Attach the lowered form of these annotations.
692692
if (!dutHierarchyFiles.empty())
693-
state.oldToNewModuleMap[state.getDut()]->setAttr(
694-
moduleHierarchyFileAttrName,
695-
ArrayAttr::get(&getContext(), dutHierarchyFiles));
693+
state.getNewModule(state.getDut())
694+
->setAttr(moduleHierarchyFileAttrName,
695+
ArrayAttr::get(&getContext(), dutHierarchyFiles));
696696
if (!testHarnessHierarchyFiles.empty())
697-
state.oldToNewModuleMap[state.getTestHarness()]->setAttr(
698-
moduleHierarchyFileAttrName,
699-
ArrayAttr::get(&getContext(), testHarnessHierarchyFiles));
697+
state.getNewModule(state.getTestHarness())
698+
->setAttr(moduleHierarchyFileAttrName,
699+
ArrayAttr::get(&getContext(), testHarnessHierarchyFiles));
700700

701701
// Finally, lower all operations.
702702
auto result = mlir::failableParallelForEachN(

0 commit comments

Comments
 (0)