[PATCH] Generate SEH unwinding info on Win64

Sanjoy Das sanjoy at playingwithpointers.com
Thu Jun 12 15:23:29 PDT 2014


Have you run the example at http://llvm.org/bugs/show_bug.cgi?id=19905 through llvm with this change in?

================
Comment at: lib/Target/X86/X86FrameLowering.cpp:1131
@@ +1130,3 @@
+    int SlotIndex = MFI->CreateFixedObject(SlotSize, SpillSlotOffset, true, true);
+    MFI->RemoveStackObject(CSI[i-1].getFrameIdx());
+    CSI[i-1].setFrameIdx(SlotIndex);
----------------
One nice effect of having a "TargetFrameLowering::assignSpillSlots" is that you won't have to create frame indices only to delete them i.e. you'd have CSR's spilled to fixed slots to begin with.

http://reviews.llvm.org/D4081






More information about the llvm-commits mailing list