aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorSterling-Augustine <56981066+Sterling-Augustine@users.noreply.github.com>2025-07-23 10:43:38 -0700
committerGitHub <noreply@github.com>2025-07-23 10:43:38 -0700
commitf9d0bd02d966e5c28aca9a6ceadd5ffec6aa9f78 (patch)
tree8c77ebb29270ddb2e0bdce354cfa9979f480d03b /llvm/lib/MC/MCStreamer.cpp
parentfc0653f31c2a153eaa87f7fe87bd5f1090c4c8ba (diff)
downloadllvm-f9d0bd02d966e5c28aca9a6ceadd5ffec6aa9f78.zip
llvm-f9d0bd02d966e5c28aca9a6ceadd5ffec6aa9f78.tar.gz
llvm-f9d0bd02d966e5c28aca9a6ceadd5ffec6aa9f78.tar.bz2
Support SFrame command-line and .cfi_section syntax (#149935)
This PR adds support for the llvm-mc command-line flag "--gsframe" and adds ".sframe" to the legal values passed ".cfi_section". It plumbs the option through the cfi handling code a fair amount. Code to support actual section generation follows in a future PR. These options match the gnu-assembler's support syntax for sframes, on both the command line and in assembly files. First in a series of changes that will allow llvm-mc to produce sframe .cfi sections. For more information about sframes, see https://sourceware.org/binutils/docs-2.44/sframe-spec.html and the llvm-RFC here: https://discourse.llvm.org/t/rfc-adding-sframe-support-to-llvm/86900
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index 30198c9..e14a32f5 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -415,7 +415,7 @@ void MCStreamer::emitLabel(MCSymbol *Symbol, SMLoc Loc) {
void MCStreamer::emitConditionalAssignment(MCSymbol *Symbol,
const MCExpr *Value) {}
-void MCStreamer::emitCFISections(bool EH, bool Debug) {}
+void MCStreamer::emitCFISections(bool EH, bool Debug, bool SFrame) {}
void MCStreamer::emitCFIStartProc(bool IsSimple, SMLoc Loc) {
if (!FrameInfoStack.empty() &&