[AsmPrinter] Fix placement of function entry comments
authorFangrui Song <i@maskray.me>
Tue, 18 Apr 2023 22:01:36 +0000 (15:01 -0700)
committerFangrui Song <i@maskray.me>
Tue, 18 Apr 2023 22:01:36 +0000 (15:01 -0700)
commitd14460d00ebacd296405872ae37e7ba743f9eecb
treedce213dc95071d6bcfd69bab3f76624b500280f2
parentf2a1726d2199150918430a84f29cf8835bfe8e5a
[AsmPrinter] Fix placement of function entry comments

The placement is currently wrong in the presence of function entry related
instrumentations (prefixdata, -fpatchable-function-entry=, -fsanitize=kcfi,
etc).
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/CodeGen/AArch64/patchable-function-entry.ll
llvm/test/CodeGen/AArch64/prefixdata.ll
llvm/test/CodeGen/LoongArch/patchable-function-entry.ll
llvm/test/CodeGen/RISCV/patchable-function-entry.ll
llvm/test/CodeGen/X86/patchable-function-entry.ll
llvm/test/CodeGen/X86/prefixdata.ll