summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2021-07-29 20:15:26 +0000
committerDimitry Andric <dim@FreeBSD.org>2021-07-29 20:15:26 +0000
commit344a3780b2e33f6ca763666c380202b18aab72a3 (patch)
treef0b203ee6eb71d7fdd792373e3c81eb18d6934dd /llvm/lib/CodeGen/AsmPrinter/ARMException.cpp
parentb60736ec1405bb0a8dd40989f67ef4c93da068ab (diff)
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/ARMException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/ARMException.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp b/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp
index b634b24377fe..db4215e92d44 100644
--- a/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp
@@ -39,13 +39,13 @@ void ARMException::beginFunction(const MachineFunction *MF) {
if (Asm->MAI->getExceptionHandlingType() == ExceptionHandling::ARM)
getTargetStreamer().emitFnStart();
// See if we need call frame info.
- AsmPrinter::CFIMoveType MoveType = Asm->needsCFIMoves();
- assert(MoveType != AsmPrinter::CFI_M_EH &&
+ AsmPrinter::CFISection CFISecType = Asm->getFunctionCFISectionType(*MF);
+ assert(CFISecType != AsmPrinter::CFISection::EH &&
"non-EH CFI not yet supported in prologue with EHABI lowering");
- if (MoveType == AsmPrinter::CFI_M_Debug) {
+ if (CFISecType == AsmPrinter::CFISection::Debug) {
if (!hasEmittedCFISections) {
- if (Asm->needsOnlyDebugCFIMoves())
+ if (Asm->getModuleCFISectionType() == AsmPrinter::CFISection::Debug)
Asm->OutStreamer->emitCFISections(false, true);
hasEmittedCFISections = true;
}