From e3b557809604d036af6e00c60f012c2025b59a5e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 11 Feb 2023 13:38:04 +0100 Subject: Vendor import of llvm-project main llvmorg-16-init-18548-gb0daacf58f41, the last commit before the upstream release/17.x branch was created. --- llvm/lib/CodeGen/AsmPrinter/ARMException.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/ARMException.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp b/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp index e04a29fbb42b..de6ebcf0c341 100644 --- a/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp @@ -19,7 +19,7 @@ #include "llvm/MC/MCStreamer.h" using namespace llvm; -ARMException::ARMException(AsmPrinter *A) : DwarfCFIExceptionBase(A) {} +ARMException::ARMException(AsmPrinter *A) : EHStreamer(A) {} ARMException::~ARMException() = default; @@ -48,6 +48,11 @@ void ARMException::beginFunction(const MachineFunction *MF) { } } +void ARMException::markFunctionEnd() { + if (shouldEmitCFI) + Asm->OutStreamer->emitCFIEndProc(); +} + /// endFunction - Gather and emit post-function exception information. /// void ARMException::endFunction(const MachineFunction *MF) { -- cgit v1.2.3