mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
[ms-inline asm] Make the comment a bit more verbose.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175641 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -389,8 +389,12 @@ bool X86RegisterInfo::hasBasePointer(const MachineFunction &MF) const {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// When we need stack realignment and there are dynamic allocas, we can't
|
// When we need stack realignment and there are dynamic allocas, we can't
|
||||||
// reference off of the stack pointer, so we reserve a base pointer. This
|
// reference off of the stack pointer, so we reserve a base pointer.
|
||||||
// is also true if the function contain MS-style inline assembly.
|
//
|
||||||
|
// This is also true if the function contain MS-style inline assembly. We
|
||||||
|
// do this because if any stack changes occur in the inline assembly, e.g.,
|
||||||
|
// "pusha", then any C local variable or C argument references in the
|
||||||
|
// inline assembly will be wrong because the SP is not properly tracked.
|
||||||
if ((needsStackRealignment(MF) && MFI->hasVarSizedObjects()) ||
|
if ((needsStackRealignment(MF) && MFI->hasVarSizedObjects()) ||
|
||||||
MF.hasMSInlineAsm())
|
MF.hasMSInlineAsm())
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user