diff options
author | Jake Egan <5326451+jakeegan@users.noreply.github.com> | 2023-07-20 09:44:14 -0400 |
---|---|---|
committer | Jake Egan <5326451+jakeegan@users.noreply.github.com> | 2023-07-20 09:45:37 -0400 |
commit | 311abf5fc07acf6e3937c2e32436f622423021ec (patch) | |
tree | 2ed8a5cb25972ad6ebf27c8ce809c4521f83a7f6 /llvm/include | |
parent | cf269417b20fc768d36ab55dbfd9187d256534ae (diff) | |
download | llvm-311abf5fc07acf6e3937c2e32436f622423021ec.zip llvm-311abf5fc07acf6e3937c2e32436f622423021ec.tar.gz llvm-311abf5fc07acf6e3937c2e32436f622423021ec.tar.bz2 |
Implement -frecord-command-line for XCOFF integrated assembler path
The patch D153600 implemented `-frecord-command-line` for the XCOFF direct assembly path. This patch adds support for the XCOFF integrated assembly path.
Reviewed By: scott.linder
Differential Revision: https://reviews.llvm.org/D154921
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/MC/MCObjectWriter.h | 3 | ||||
-rw-r--r-- | llvm/include/llvm/MC/MCXCOFFStreamer.h | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/MC/MCObjectWriter.h b/llvm/include/llvm/MC/MCObjectWriter.h index 2a43266..8c10452 100644 --- a/llvm/include/llvm/MC/MCObjectWriter.h +++ b/llvm/include/llvm/MC/MCObjectWriter.h @@ -110,6 +110,9 @@ public: unsigned FunctionSize, bool hasDebug) { report_fatal_error("addExceptionEntry is only supported on XCOFF targets"); } + virtual void addCInfoSymEntry(StringRef Name, StringRef Metadata) { + report_fatal_error("addCInfoSymEntry is only supported on XCOFF targets"); + } /// Write the object file and returns the number of bytes written. /// /// This routine is called by the assembler after layout and relaxation is diff --git a/llvm/include/llvm/MC/MCXCOFFStreamer.h b/llvm/include/llvm/MC/MCXCOFFStreamer.h index a3db636..041bbbf 100644 --- a/llvm/include/llvm/MC/MCXCOFFStreamer.h +++ b/llvm/include/llvm/MC/MCXCOFFStreamer.h @@ -40,10 +40,7 @@ public: void emitXCOFFExceptDirective(const MCSymbol *Symbol, const MCSymbol *Trap, unsigned Lang, unsigned Reason, unsigned FunctionSize, bool hasDebug) override; - void emitXCOFFCInfoSym(StringRef Name, StringRef Metadata) override { - report_fatal_error("emitXCOFFCInfoSym is not implemented yet on " - "object generation path"); - } + void emitXCOFFCInfoSym(StringRef Name, StringRef Metadata) override; }; } // end namespace llvm |