[all-commits] [llvm/llvm-project] fbef6c: [lldb] Declare extern template instantiation to fi...

Jordan Rupprecht via All-commits all-commits at lists.llvm.org
Thu Jul 9 18:47:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fbef6c55bc2f349110bd601b716889d73e101c92
      https://github.com/llvm/llvm-project/commit/fbef6c55bc2f349110bd601b716889d73e101c92
  Author: Jordan Rupprecht <rupprecht at google.com>
  Date:   2020-07-09 (Thu, 09 Jul 2020)

  Changed paths:
    M lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp
    M lldb/source/Plugins/Process/POSIX/NativeProcessELF.h

  Log Message:
  -----------
  [lldb] Declare extern template instantiation to fix linking issues.

NativeProcessELF::GetELFImageInfoAddress<...>() is declared in NativeProcessELF.h, but only defined in NativeProcessELF.cpp. Via some optimized builds (e.g. thinlto), this instantiation may be removed when it is used in a different TU (NativeProcessELFTest.cpp).




More information about the All-commits mailing list