[ms-inline asm] Do not omit the frame pointer if we have ms-inline assembly.
authorChad Rosier <mcrosier@apple.com>
Sat, 16 Feb 2013 01:25:28 +0000 (01:25 +0000)
committerChad Rosier <mcrosier@apple.com>
Sat, 16 Feb 2013 01:25:28 +0000 (01:25 +0000)
commit925c9b499e0af712975f5a3d4dd6a429c254a2d8
tree5b7365bed97b5df4e2e9f69615a401835bf634f5
parent19b79c8bf9c47433373ea4db159de78ce96ea486
[ms-inline asm] Do not omit the frame pointer if we have ms-inline assembly.

If the frame pointer is omitted, and any stack changes occur in the inline
assembly, e.g.: "pusha", then any C local variable or C argument references
will be incorrect.

I pass no judgement on anyone who would do such a thing. ;)
rdar://13218191

llvm-svn: 175334
llvm/include/llvm/CodeGen/MachineFunction.h
llvm/include/llvm/CodeGen/MachineInstr.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
llvm/lib/Target/X86/X86FrameLowering.cpp
llvm/test/CodeGen/X86/ms-inline-asm.ll