[all-commits] [llvm/llvm-project] 47feae: Use lld::make<T> to make TpiSource objects

Rui Ueyama via All-commits all-commits at lists.llvm.org
Tue Nov 19 20:16:11 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 47feae5dd61d891d4c1382b9784738111b4f9396
      https://github.com/llvm/llvm-project/commit/47feae5dd61d891d4c1382b9784738111b4f9396
  Author: Rui Ueyama <ruiu at google.com>
  Date:   2019-11-20 (Wed, 20 Nov 2019)

  Changed paths:
    M lld/COFF/DebugTypes.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list