aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorPaul Scoropan <pauls@brimley.rtp.raleigh.ibm.com>2022-09-26 22:03:49 -0400
committerChen Zheng <czhengsz@cn.ibm.com>2022-09-26 22:24:20 -0400
commitce004fb4f2e64650c37ac057dc18934b379a6016 (patch)
treea57524f8514c85fbdbb64807e3daa694c357858a /llvm/lib/MC/MCStreamer.cpp
parent1172bdecfab364579d90e6aa5ba7fc64a5b96786 (diff)
downloadllvm-ce004fb4f2e64650c37ac057dc18934b379a6016.zip
llvm-ce004fb4f2e64650c37ac057dc18934b379a6016.tar.gz
llvm-ce004fb4f2e64650c37ac057dc18934b379a6016.tar.bz2
[PowerPC] XCOFF exception section support on the direct assembler path
This feature implements support for making entries in the exception section on XCOFF on the direct assembly path using the ".except" pseudo-op. It also provides functionality to lower entries (comprised of language and reason codes) into the exception section through the use of annotation metadata attached to llvm.ppc.trap/trapd/tw/tdw intrinsics. Integrated assembler support will be provided in another review. https://reviews.llvm.org/D133030 needs to merge first for LIT tests Reviewed By: shchenz, RKSimon Differential Revision: https://reviews.llvm.org/D132146
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index e93787c..de303f5 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -1190,6 +1190,15 @@ void MCStreamer::emitXCOFFRefDirective(StringRef Name) {
llvm_unreachable("emitXCOFFRefDirective is only supported on XCOFF targets");
}
+void MCStreamer::emitXCOFFExceptDirective(const MCSymbol *Symbol,
+ MCSymbol *Trap, unsigned Lang,
+ unsigned Reason,
+ unsigned FunctionSize,
+ bool hasDebug) {
+ report_fatal_error("emitXCOFFExceptDirective is only supported on "
+ "XCOFF targets");
+}
+
void MCStreamer::emitELFSize(MCSymbol *Symbol, const MCExpr *Value) {}
void MCStreamer::emitELFSymverDirective(const MCSymbol *OriginalSym,
StringRef Name, bool KeepOriginalSym) {}