diff options
| author | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-11-07 15:03:53 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-11-07 15:03:53 +0000 |
| commit | 2c6f4b430b84b1ef03ee96f23bde8a6843893b9c (patch) | |
| tree | d6469cff3d3cf6c9db9bcd34bb55473e17ad1ee2 /llvm/lib/Target/Mips/MipsABIInfo.cpp | |
| parent | 0ebd071450a3105ead53261a23fd37447102984f (diff) | |
| download | bcm5719-llvm-2c6f4b430b84b1ef03ee96f23bde8a6843893b9c.tar.gz bcm5719-llvm-2c6f4b430b84b1ef03ee96f23bde8a6843893b9c.zip | |
[mips] Remove MipsCC::reservedArgArea() in favour of MipsABIInfo::GetCalleeAllocdArgSizeInBytes(). NFC.
Summary:
Reviewers: theraven, vmedic
Reviewed By: vmedic
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D6115
llvm-svn: 221528
Diffstat (limited to 'llvm/lib/Target/Mips/MipsABIInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsABIInfo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsABIInfo.cpp b/llvm/lib/Target/Mips/MipsABIInfo.cpp index 04a8e3252ba..f885369845e 100644 --- a/llvm/lib/Target/Mips/MipsABIInfo.cpp +++ b/llvm/lib/Target/Mips/MipsABIInfo.cpp @@ -35,3 +35,11 @@ const ArrayRef<MCPhysReg> MipsABIInfo::GetVarArgRegs() const { return makeArrayRef(Mips64IntRegs); llvm_unreachable("Unhandled ABI"); } + +unsigned MipsABIInfo::GetCalleeAllocdArgSizeInBytes(CallingConv::ID CC) const { + if (IsO32()) + return CC != CallingConv::Fast ? 16 : 0; + if (IsN32() || IsN64() || IsEABI()) + return 0; + llvm_unreachable("Unhandled ABI"); +} |

