[PATCH] D21813: ARM: Fix ARMSubtarget for WOA
Martell Malone via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 28 13:46:57 PDT 2016
martell removed rL LLVM as the repository for this revision.
martell updated this revision to Diff 62135.
http://reviews.llvm.org/D21813
Files:
lib/Support/Windows/Signals.inc
lib/Target/ARM/ARMSubtarget.cpp
Index: lib/Target/ARM/ARMSubtarget.cpp
===================================================================
--- lib/Target/ARM/ARMSubtarget.cpp
+++ lib/Target/ARM/ARMSubtarget.cpp
@@ -210,10 +210,6 @@
// Initialize scheduling itinerary for the specified CPU.
InstrItins = getInstrItineraryForCPU(CPUString);
- // FIXME: this is invalid for WindowsCE
- if (isTargetWindows())
- NoARM = true;
-
if (isAAPCS_ABI())
stackAlignment = 8;
if (isTargetNaCl() || isAAPCS16_ABI())
Index: lib/Support/Windows/Signals.inc
===================================================================
--- lib/Support/Windows/Signals.inc
+++ lib/Support/Windows/Signals.inc
@@ -525,10 +525,14 @@
StackFrame.AddrPC.Offset = Context.Rip;
StackFrame.AddrStack.Offset = Context.Rsp;
StackFrame.AddrFrame.Offset = Context.Rbp;
-#else
+#elif defined(_M_IX86)
StackFrame.AddrPC.Offset = Context.Eip;
StackFrame.AddrStack.Offset = Context.Esp;
StackFrame.AddrFrame.Offset = Context.Ebp;
+#elif defined(_M_ARM)
+ StackFrame.AddrPC.Offset = Context.Pc;
+ StackFrame.AddrStack.Offset = Context.Sp;
+ StackFrame.AddrFrame.Offset = Context.Lr;
#endif
StackFrame.AddrPC.Mode = AddrModeFlat;
StackFrame.AddrStack.Mode = AddrModeFlat;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21813.62135.patch
Type: text/x-patch
Size: 1245 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160628/933583aa/attachment.bin>
More information about the llvm-commits
mailing list