In lld we rarely use std::unique_ptr but instead allocate new instances
using lld::make<T>() so that they are deallocated at the end of linking.
This patch changes existing code so that that follows the convention.
Details
Details
- Reviewers
rnk - Commits
- rG47feae5dd61d: Use lld::make<T> to make TpiSource objects
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
lgtm
We make O(#objects) of these, and they live for the lifetime of the link.
lld/COFF/DebugTypes.h | ||
---|---|---|
35 ↗ | (On Diff #229974) | nit, but if you put the ctor and dtor out of line, you will achieve the object size saving goals of this LLVM coding guideline: |
lld/COFF/DebugTypes.h | ||
---|---|---|
35 ↗ | (On Diff #229974) | Fixed before submitting. Thanks! |