HomePhabricator

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

Authored by zequanwu on Apr 28 2021, 9:25 PM.

Description

[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