[AsmPrinter] Omit unique ID for __patchable_function_entries sections
authorFangrui Song <maskray@google.com>
Sat, 15 Feb 2020 04:35:04 +0000 (20:35 -0800)
committerFangrui Song <maskray@google.com>
Sat, 15 Feb 2020 04:54:54 +0000 (20:54 -0800)
commitf554e27224b9fd888d5c803e555425076d5a8c1a
tree01d6d33e38be6df638af82f4b17d15434ac8b820
parent1dc16c752dd3dcd41ed320c2ea7647ea5bd7736e
[AsmPrinter] Omit unique ID for __patchable_function_entries sections

Follow-up for D74006.

When the integrated assembler is used, we use SHF_LINK_ORDER.  The
linked-to symbol is part of ELFSectionKey, thus we can omit the unique
ID.
llvm/include/llvm/CodeGen/AsmPrinter.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/CodeGen/AArch64/patchable-function-entry-bti.ll
llvm/test/CodeGen/AArch64/patchable-function-entry.ll
llvm/test/CodeGen/X86/patchable-function-entry-ibt.ll
llvm/test/CodeGen/X86/patchable-function-entry.ll