diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-02-01 01:14:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-02-01 01:14:13 +0000 |
commit | d22a4a1fd69ac8553d90677bdd52023b2cb7661c (patch) | |
tree | d223805240491c2d1d12ff6688ae8cb8411149e0 /llvm/lib/Target/X86/X86FrameLowering.cpp | |
parent | c4a99bc416542001bb369ef6ac6bb434ff4b3471 (diff) | |
download | bcm5719-llvm-d22a4a1fd69ac8553d90677bdd52023b2cb7661c.tar.gz bcm5719-llvm-d22a4a1fd69ac8553d90677bdd52023b2cb7661c.zip |
Patches to build EFI with Clang/LLVM. By Carl Norum.
llvm-svn: 124639
Diffstat (limited to 'llvm/lib/Target/X86/X86FrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86FrameLowering.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index 1abd170edfc..2db47f4c54a 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.cpp +++ b/llvm/lib/Target/X86/X86FrameLowering.cpp @@ -556,7 +556,9 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const { // responsible for adjusting the stack pointer. Touching the stack at 4K // increments is necessary to ensure that the guard pages used by the OS // virtual memory manager are allocated in correct sequence. - if (NumBytes >= 4096 && (STI.isTargetCygMing() || STI.isTargetWin32())) { + if (NumBytes >= 4096 && + (STI.isTargetCygMing() || STI.isTargetWin32()) && + !STI.isTargetEnvMacho()) { // Check whether EAX is livein for this function. bool isEAXAlive = isEAXLiveIn(MF); @@ -592,7 +594,9 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const { StackPtr, false, NumBytes - 4); MBB.insert(MBBI, MI); } - } else if (NumBytes >= 4096 && STI.isTargetWin64()) { + } else if (NumBytes >= 4096 && + STI.isTargetWin64() && + !STI.isTargetEnvMacho()) { // Sanity check that EAX is not livein for this function. It should // should not be, so throw an assert. assert(!isEAXLiveIn(MF) && "EAX is livein in the Win64 case!"); |