aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorJinsong Ji <jji@us.ibm.com>2021-07-12 03:37:06 +0000
committerJinsong Ji <jji@us.ibm.com>2021-07-12 17:03:52 +0000
commit28fb69e00a4d3f3e59ccd63cf5c56c4af66a475c (patch)
tree3019cbe801146300e29db3e7b6f54b8d992bce80 /llvm/lib/MC/MCStreamer.cpp
parentaf6f136a8c6a842acd20ca1f9f76076fcb212a94 (diff)
downloadllvm-28fb69e00a4d3f3e59ccd63cf5c56c4af66a475c.zip
llvm-28fb69e00a4d3f3e59ccd63cf5c56c4af66a475c.tar.gz
llvm-28fb69e00a4d3f3e59ccd63cf5c56c4af66a475c.tar.bz2
[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
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index 2a1998f..fc7fb55 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -1147,6 +1147,9 @@ void MCStreamer::EndCOFFSymbolDef() {
llvm_unreachable("this directive only supported on COFF targets");
}
void MCStreamer::emitFileDirective(StringRef Filename) {}
+void MCStreamer::emitFileDirective(StringRef Filename, StringRef CompilerVerion,
+ StringRef TimeStamp, StringRef Description) {
+}
void MCStreamer::EmitCOFFSymbolStorageClass(int StorageClass) {
llvm_unreachable("this directive only supported on COFF targets");
}