[PATCH] D45590: [Support] Fix building for Windows on ARM

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 12 23:41:23 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL329991: [Support] Fix building for Windows on ARM (authored by mstorsjo, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D45590?vs=142251&id=142337#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D45590

Files:
  llvm/trunk/lib/Support/Windows/Signals.inc


Index: llvm/trunk/lib/Support/Windows/Signals.inc
===================================================================
--- llvm/trunk/lib/Support/Windows/Signals.inc
+++ llvm/trunk/lib/Support/Windows/Signals.inc
@@ -533,10 +533,14 @@
   StackFrame.AddrPC.Offset = Context.Eip;
   StackFrame.AddrStack.Offset = Context.Esp;
   StackFrame.AddrFrame.Offset = Context.Ebp;
-#elif defined(_M_ARM64) || defined(_M_ARM)
+#elif defined(_M_ARM64)
   StackFrame.AddrPC.Offset = Context.Pc;
   StackFrame.AddrStack.Offset = Context.Sp;
   StackFrame.AddrFrame.Offset = Context.Fp;
+#elif defined(_M_ARM)
+  StackFrame.AddrPC.Offset = Context.Pc;
+  StackFrame.AddrStack.Offset = Context.Sp;
+  StackFrame.AddrFrame.Offset = Context.R11;
 #endif
   StackFrame.AddrPC.Mode = AddrModeFlat;
   StackFrame.AddrStack.Mode = AddrModeFlat;
@@ -816,7 +820,11 @@
   StackFrame.AddrPC.Mode = AddrModeFlat;
   StackFrame.AddrStack.Offset = ep->ContextRecord->Sp;
   StackFrame.AddrStack.Mode = AddrModeFlat;
+#if defined(_M_ARM64)
   StackFrame.AddrFrame.Offset = ep->ContextRecord->Fp;
+#else
+  StackFrame.AddrFrame.Offset = ep->ContextRecord->R11;
+#endif
   StackFrame.AddrFrame.Mode = AddrModeFlat;
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45590.142337.patch
Type: text/x-patch
Size: 1191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180413/c1f8ff7a/attachment.bin>


More information about the llvm-commits mailing list