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
- Build Status
Buildable 41151 Build 41326: arc lint + arc unit
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 | 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 | Fixed before submitting. Thanks! |
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:
https://llvm.org/docs/CodingStandards.html#provide-a-virtual-method-anchor-for-classes-in-headers