[PATCH] D72000: [ARM][Thumb][FIX] Add unwinding information to t4

Diogo N. Sampaio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 30 06:20:04 PST 2019


dnsampaio created this revision.
dnsampaio added reviewers: dmgreen, efriedma.
Herald added subscribers: llvm-commits, hiraditya, kristof.beyls.
Herald added a project: LLVM.

Add missing part of patch D71361 <https://reviews.llvm.org/D71361>. Now that the stack-frame
can be operated using a addw/subw instruction, they should
appear in the unwinding list.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72000

Files:
  llvm/lib/Target/ARM/ARMAsmPrinter.cpp


Index: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
===================================================================
--- llvm/lib/Target/ARM/ARMAsmPrinter.cpp
+++ llvm/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -1170,10 +1170,12 @@
         break;
       case ARM::ADDri:
       case ARM::t2ADDri:
+      case ARM::t2ADDri12:
         Offset = -MI->getOperand(2).getImm();
         break;
       case ARM::SUBri:
       case ARM::t2SUBri:
+      case ARM::t2SUBri12:
         Offset = MI->getOperand(2).getImm();
         break;
       case ARM::tSUBspi:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72000.235593.patch
Type: text/x-patch
Size: 544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191230/5798b79d/attachment.bin>


More information about the llvm-commits mailing list