[all-commits] [llvm/llvm-project] cab48e: [CodeGen] don't emit addrsig symbol if it's used o...

ZequanWu via All-commits all-commits at lists.llvm.org
Thu Apr 29 15:40:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cab48e2f0e00648ef0494ce114f4e00a3ded330f
      https://github.com/llvm/llvm-project/commit/cab48e2f0e00648ef0494ce114f4e00a3ded330f
  Author: Zequan Wu <zequanwu at google.com>
  Date:   2021-04-29 (Thu, 29 Apr 2021)

  Changed paths:
    M llvm/include/llvm/IR/Value.h
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/IR/Value.cpp
    M llvm/test/CodeGen/X86/addrsig.ll

  Log Message:
  -----------
  [CodeGen] don't emit addrsig symbol if it's used only by metadata

Value only used by metadata can be removed from .addrsig table.
This solves the undefined symbol error when enabling addrsig table on COFF LTO.

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




More information about the All-commits mailing list