[AIX] Emit version string in .file directive
authorJinsong Ji <jji@us.ibm.com>
Mon, 12 Jul 2021 03:37:06 +0000 (03:37 +0000)
committerJinsong Ji <jji@us.ibm.com>
Mon, 12 Jul 2021 17:03:52 +0000 (17:03 +0000)
commit28fb69e00a4d3f3e59ccd63cf5c56c4af66a475c
tree3019cbe801146300e29db3e7b6f54b8d992bce80
parentaf6f136a8c6a842acd20ca1f9f76076fcb212a94
[AIX] Emit version string in .file directive

AIX .file directive support including compiler version string.
https://www.ibm.com/docs/en/aix/7.2?topic=ops-file-pseudo-op

This patch adds the support so that it will be easier to identify build
compiler in objects.

Reviewed By: #powerpc, shchenz

Differential Revision: https://reviews.llvm.org/D105743
12 files changed:
llvm/include/llvm/MC/MCAsmInfo.h
llvm/include/llvm/MC/MCObjectStreamer.h
llvm/include/llvm/MC/MCStreamer.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/MC/MCAsmInfoXCOFF.cpp
llvm/lib/MC/MCAsmStreamer.cpp
llvm/lib/MC/MCObjectStreamer.cpp
llvm/lib/MC/MCStreamer.cpp
llvm/test/CodeGen/PowerPC/aix-filename-absolute-path.ll
llvm/test/CodeGen/PowerPC/aix-filename-relative-path.ll
llvm/test/CodeGen/PowerPC/aix-filename-special-character-double-quotation.ll
llvm/test/CodeGen/PowerPC/aix-filename-special-character-single-quotation.ll