[all-commits] [llvm/llvm-project] fa40c5: [llvm-jitlink] Prevent dead-stripping of test call...

Ben Langmuir via All-commits all-commits at lists.llvm.org
Tue Jan 18 15:58:10 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa40c53960e299f79d1994fa43dbbb31f67b1498
      https://github.com/llvm/llvm-project/commit/fa40c53960e299f79d1994fa43dbbb31f67b1498
  Author: Ben Langmuir <blangmuir at apple.com>
  Date:   2022-01-18 (Tue, 18 Jan 2022)

  Changed paths:
    M llvm/tools/llvm-jitlink/llvm-jitlink.cpp

  Log Message:
  -----------
  [llvm-jitlink] Prevent dead-stripping of test callback

`llvm_jitlink_setTestResultOverride` is used via runtime lookup by
tests, so make sure it is not dead-stripped from llvm-jitlink in release
builds.

Fixes https://github.com/llvm/llvm-project/issues/53203

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




More information about the All-commits mailing list