[all-commits] [llvm/llvm-project] 9be438: Support: Avoid unnecessary std::function for Signp...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Thu Apr 8 16:35:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9be43874343b0aa2221497830d0356eb4b7eecfa
      https://github.com/llvm/llvm-project/commit/9be43874343b0aa2221497830d0356eb4b7eecfa
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2021-04-08 (Thu, 08 Apr 2021)

  Changed paths:
    M llvm/lib/Support/Signposts.cpp

  Log Message:
  -----------
  Support: Avoid unnecessary std::function for SignpostEmitterImpl::SignpostLog

The destructor for SignPostEmitterImpl::SignpostLog is known statically. Avoid
the unnecessary vtable indirection through std::function in the std::unique_ptr
by turning LogDeleter into a struct. No real functionality change here.

Differential Revision: https://reviews.llvm.org/D100154




More information about the All-commits mailing list