If -fomit-frame-pointer is used, we still need to record when the %esp register
authorBill Wendling <isanbard@gmail.com>
Thu, 9 Jul 2009 22:30:02 +0000 (22:30 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 9 Jul 2009 22:30:02 +0000 (22:30 +0000)
commitd15f45f53e2d5f89b777b1c2d36de0b40f303a01
treeb4ee8e1b891cadae6fae96e398759932a6989fd1
parent5c874172ac8fd563867efc54022ac4c1571e1313
If -fomit-frame-pointer is used, we still need to record when the %esp register
is modified. Otherwise, the unwinder will get confused. The old code (before I
started my hacking) did this. It dropped on the floor, because I wasn't aware of
this requirement.

On the plus side, if we use "alloca" in a function, we create frame pointers
even with -fomit-frame-pointer is enabled!

This is a Good Thing(tm)!!!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75183 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86RegisterInfo.cpp