[all-commits] [llvm/llvm-project] c189ec: Support: hoist `extern template` declarations

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Wed Sep 8 10:10:08 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c189ec2e3f33b5805a1eaa48fe71a60d0a2f55ed
      https://github.com/llvm/llvm-project/commit/c189ec2e3f33b5805a1eaa48fe71a60d0a2f55ed
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M llvm/include/llvm/Support/CommandLine.h

  Log Message:
  -----------
  Support: hoist `extern template` declarations

Precede the `extern template` declaration prior to use.  This is helpful
as it prevents the compiler from having to worry about instantiating the
template as it will be provided for.  This is particularly important for
Windows where `__declspec(dllexport)` will traverses inheritance clauses
resulting in an incorrect application of dll interface to declarations.




More information about the All-commits mailing list