Skip to content

Commit

Permalink
[LowerToHW][nfc] Use public, not friend private
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
seldridge committed Mar 3, 2024
1 parent 49b5331 commit 4996f67
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Conversion/FIRRTLToHW/LowerToHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,13 +690,13 @@ void FIRRTLModuleLowering::runOnOperation() {
});
// Attach the lowered form of these annotations.
if (!dutHierarchyFiles.empty())
state.oldToNewModuleMap[state.getDut()]->setAttr(
moduleHierarchyFileAttrName,
ArrayAttr::get(&getContext(), dutHierarchyFiles));
state.getNewModule(state.getDut())
->setAttr(moduleHierarchyFileAttrName,
ArrayAttr::get(&getContext(), dutHierarchyFiles));
if (!testHarnessHierarchyFiles.empty())
state.oldToNewModuleMap[state.getTestHarness()]->setAttr(
moduleHierarchyFileAttrName,
ArrayAttr::get(&getContext(), testHarnessHierarchyFiles));
state.getNewModule(state.getTestHarness())
->setAttr(moduleHierarchyFileAttrName,
ArrayAttr::get(&getContext(), testHarnessHierarchyFiles));

// Finally, lower all operations.
auto result = mlir::failableParallelForEachN(
Expand Down

0 comments on commit 4996f67

Please sign in to comment.