diff options
| author | Nadav Rotem <nrotem@apple.com> | 2012-12-23 07:30:09 +0000 |
|---|---|---|
| committer | Nadav Rotem <nrotem@apple.com> | 2012-12-23 07:30:09 +0000 |
| commit | 1bef5a050905b3b4fa44d8f6ba275b3c9596aa6a (patch) | |
| tree | 42a083720117a55375edbe8f306fb1bad09ba1e7 /llvm/lib | |
| parent | 2cade68025a29feb887212941f6ba7c3d8a37881 (diff) | |
| download | bcm5719-llvm-1bef5a050905b3b4fa44d8f6ba275b3c9596aa6a.tar.gz bcm5719-llvm-1bef5a050905b3b4fa44d8f6ba275b3c9596aa6a.zip | |
Rename a function.
llvm-svn: 170996
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86FrameLowering.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index cf6c5c86d3a..63454877514 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.cpp +++ b/llvm/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; |

