//
// The LLVM Compiler Infrastructure
//
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
static unsigned getReturnSaveOffset(bool LP64, bool isMacho) {
if (isMacho)
return LP64 ? 16 : 8;
- // For ELF ABI:
- return LP64 ? 8 : 4;
+ // For ELF 32 ABI:
+ return 4;
}
/// getFramePointerSaveOffset - Return the previous frame offset to save the
if (isMacho)
return LP64 ? 40 : 20;
- // For ELF ABI:
+ // For ELF 32 ABI:
// Save it right before the link register
- return LP64 ? -8 : -4;
+ return -4U;
}
/// getLinkageSize - Return the size of the PowerPC ABI linkage area.
if (isMacho)
return 6 * (LP64 ? 8 : 4);
- // For ELF ABI:
- return LP64 ? 16 : 8;
+ // For ELF 32 ABI:
+ return 8;
}
/// getMinCallArgumentsSize - Return the size of the minium PowerPC ABI
if (isMacho)
return 8 * (LP64 ? 8 : 4);
- // For Linux ABI:
+ // For ELF 32 ABI:
// There is no default stack allocated for the 8 first GPR arguments.
return 0;
}