summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86FrameLowering.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-12-23 07:30:09 +0000
committerNadav Rotem <nrotem@apple.com>2012-12-23 07:30:09 +0000
commit677689cf5dc65404645462464682a0696cc84532 (patch)
tree10fd2b6abe5d86ffd7a354c722d30115b576f2d2 /lib/Target/X86/X86FrameLowering.cpp
parentd54fed27865dcbc69932e1e6c372bb5a932e662a (diff)
downloadllvm-677689cf5dc65404645462464682a0696cc84532.tar.gz
llvm-677689cf5dc65404645462464682a0696cc84532.tar.bz2
llvm-677689cf5dc65404645462464682a0696cc84532.tar.xz
Rename a function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86FrameLowering.cpp')
-rw-r--r--lib/Target/X86/X86FrameLowering.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp
index cf6c5c86d3..6345487751 100644
--- a/lib/Target/X86/X86FrameLowering.cpp
+++ b/lib/Target/X86/X86FrameLowering.cpp
@@ -625,12 +625,12 @@ uint32_t X86FrameLowering::getCompactUnwindEncoding(MachineFunction &MF) const {
return CompactUnwindEncoding;
}
-/// colobbersTheStack - This function checks if any of the users of EFLAGS
+/// usesTheStack - This function checks if any of the users of EFLAGS
/// copies the EFLAGS. We know that the code that lowers COPY of EFLAGS has
/// to use the stack, and if we don't adjust the stack we clobber the first
/// frame index.
-/// See X86InstrInfo::copyPhysReg.
-static bool colobbersTheStack(MachineFunction &MF) {
+/// See X86InstrInfo::copyPhysReg.
+static bool usesTheStack(MachineFunction &MF) {
MachineRegisterInfo &MRI = MF.getRegInfo();
for (MachineRegisterInfo::reg_iterator ri = MRI.reg_begin(X86::EFLAGS),
@@ -696,7 +696,7 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const {
!MFI->hasVarSizedObjects() && // No dynamic alloca.
!MFI->adjustsStack() && // No calls.
!IsWin64 && // Win64 has no Red Zone
- !colobbersTheStack(MF) && // Don't push and pop.
+ !usesTheStack(MF) && // Don't push and pop.
!MF.getTarget().Options.EnableSegmentedStacks) { // Regular stack
uint64_t MinSize = X86FI->getCalleeSavedFrameSize();
if (HasFP) MinSize += SlotSize;