Skip to content

Commit 43596f4

Browse files
Change DIEWriter to not have any references
(cherry picked from commit d91e87e)
1 parent f29df67 commit 43596f4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/MCCAS/MCCASObjectV1.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,18 +1880,12 @@ Error MCCASBuilder::createDebugAbbrevSection() {
18801880
/// Helper class to create DIEDataRefs by keeping track of references to
18811881
/// children blocks.
18821882
struct DIEDataWriter : public DataWriter {
1883-
/// Add `CASObj` to the list of children of the DIE being created.
1884-
void addRef(DIEDataRef CASObj) { Children.push_back(CASObj.getRef()); }
18851883

18861884
/// Saves the main data stream and any children to a new DIEDataRef node.
18871885
Expected<DIEDataRef> getCASNode(MCCASBuilder &CASBuilder) {
18881886
auto Ref = DIEDataRef::create(CASBuilder, toStringRef(Data));
1889-
Data.clear();
18901887
return Ref;
18911888
}
1892-
1893-
private:
1894-
SmallVector<cas::ObjectRef> Children;
18951889
};
18961890

18971891
/// Helper class to create DIEDistinctDataRefs.

0 commit comments

Comments
 (0)