Use lld::make<T> to make TpiSource objects
authorRui Ueyama <ruiu@google.com>
Tue, 19 Nov 2019 06:04:21 +0000 (15:04 +0900)
committerRui Ueyama <ruiu@google.com>
Wed, 20 Nov 2019 04:14:44 +0000 (13:14 +0900)
commit47feae5dd61d891d4c1382b9784738111b4f9396
tree9511d8646db7f4a9f880fb6bea2cf3d1ba1c52c4
parent86c66cea21f065a1f757cb072c544f89ce227284
Use lld::make<T> to make TpiSource objects

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.

Differential Revision: https://reviews.llvm.org/D70420
lld/COFF/DebugTypes.cpp