[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)
commitb56606274d43c7a3e01b18a08d1115fbf2889996
treeea89f8db120a3b54de9e5e6d3ff083272ed9ebd6
parent42edeb1ba8aabcbe0e5cc846d9e5f2a9e2261292
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175334 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineFunction.h
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/Target/X86/X86FrameLowering.cpp
test/CodeGen/X86/ms-inline-asm.ll