1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

[mips] Add parameter Alignment to MipsFrameLowering's constructor.

No functionality changes.

llvm-svn: 178326
This commit is contained in:
Akira Hatanaka 2013-03-29 01:51:04 +00:00
parent 333b99112b
commit c27c81aa86
3 changed files with 4 additions and 5 deletions

View File

@ -20,7 +20,7 @@ namespace llvm {
class Mips16FrameLowering : public MipsFrameLowering {
public:
explicit Mips16FrameLowering(const MipsSubtarget &STI)
: MipsFrameLowering(STI) {}
: MipsFrameLowering(STI, 8) {}
/// emitProlog/emitEpilog - These methods insert prolog and epilog code into
/// the function.

View File

@ -26,9 +26,8 @@ protected:
const MipsSubtarget &STI;
public:
explicit MipsFrameLowering(const MipsSubtarget &sti)
: TargetFrameLowering(StackGrowsDown, sti.hasMips64() ? 16 : 8, 0,
sti.hasMips64() ? 16 : 8), STI(sti) {}
explicit MipsFrameLowering(const MipsSubtarget &sti, unsigned Alignment)
: TargetFrameLowering(StackGrowsDown, Alignment, 0, Alignment), STI(sti) {}
static const MipsFrameLowering *create(MipsTargetMachine &TM,
const MipsSubtarget &ST);

View File

@ -21,7 +21,7 @@ namespace llvm {
class MipsSEFrameLowering : public MipsFrameLowering {
public:
explicit MipsSEFrameLowering(const MipsSubtarget &STI)
: MipsFrameLowering(STI) {}
: MipsFrameLowering(STI, STI.hasMips64() ? 16 : 8) {}
/// emitProlog/emitEpilog - These methods insert prolog and epilog code into
/// the function.