[AsmPrinter] Emit PCs into requested PCSections
authorMarco Elver <elver@google.com>
Tue, 6 Sep 2022 13:49:28 +0000 (15:49 +0200)
committerMarco Elver <elver@google.com>
Wed, 7 Sep 2022 09:36:02 +0000 (11:36 +0200)
commit343700358feb45ccc15182462ddf63a368623040
tree8e8d0ad7d4bf1641ef7eb1637d6fa4db73c82bb1
parent31a548021b4af4d6cffb2c0018e9f808abee2bde
[AsmPrinter] Emit PCs into requested PCSections

Interpret MD_pcsections in AsmPrinter emitting the requested metadata to
the associated sections. Functions and normal instructions are handled.

Differential Revision: https://reviews.llvm.org/D130879
llvm/include/llvm/CodeGen/AsmPrinter.h
llvm/include/llvm/MC/MCObjectFileInfo.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/MC/MCObjectFileInfo.cpp
llvm/test/CodeGen/AArch64/pcsections.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/pcsections.ll [new file with mode: 0644]