Skip to content

Commit d91e87e

Browse files
Change DIEWriter to not have any references
1 parent db0871f commit d91e87e

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
@@ -1887,18 +1887,12 @@ Error MCCASBuilder::createDebugAbbrevSection() {
18871887
/// Helper class to create DIEDataRefs by keeping track of references to
18881888
/// children blocks.
18891889
struct DIEDataWriter : public DataWriter {
1890-
/// Add `CASObj` to the list of children of the DIE being created.
1891-
void addRef(DIEDataRef CASObj) { Children.push_back(CASObj.getRef()); }
18921890

18931891
/// Saves the main data stream and any children to a new DIEDataRef node.
18941892
Expected<DIEDataRef> getCASNode(MCCASBuilder &CASBuilder) {
18951893
auto Ref = DIEDataRef::create(CASBuilder, toStringRef(Data));
1896-
Data.clear();
18971894
return Ref;
18981895
}
1899-
1900-
private:
1901-
SmallVector<cas::ObjectRef> Children;
19021896
};
19031897

19041898
/// Helper class to create DIEDistinctDataRefs.

0 commit comments

Comments
 (0)