diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-11-09 14:27:49 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-11-09 14:27:49 +0000 |
commit | b8e0ebf034a473ac4a5ff477d4bf653b70c778a4 (patch) | |
tree | a17c23c05ee48a32567c1765c1cb8f9c464e6b1a /lib/Target/Mips/MipsMachineFunction.h | |
parent | 47fc9d336619f45c0d6c80750cfbeb01b7dda207 (diff) | |
download | external_llvm-b8e0ebf034a473ac4a5ff477d4bf653b70c778a4.zip external_llvm-b8e0ebf034a473ac4a5ff477d4bf653b70c778a4.tar.gz external_llvm-b8e0ebf034a473ac4a5ff477d4bf653b70c778a4.tar.bz2 |
Fix PR5149.
http://llvm.org/bugs/show_bug.cgi?id=5149
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsMachineFunction.h')
-rw-r--r-- | lib/Target/Mips/MipsMachineFunction.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsMachineFunction.h b/lib/Target/Mips/MipsMachineFunction.h index 949c78a..a300f49 100644 --- a/lib/Target/Mips/MipsMachineFunction.h +++ b/lib/Target/Mips/MipsMachineFunction.h @@ -103,6 +103,7 @@ public: int getGPFI() const { return GPHolder.FI; } void setGPStackOffset(int Off) { GPHolder.SPOffset = Off; } void setGPFI(int FI) { GPHolder.FI = FI; } + bool needGPSaveRestore() const { return GPHolder.SPOffset != -1; } bool hasLoadArgs() const { return HasLoadArgs; } bool hasStoreVarArgs() const { return HasStoreVarArgs; } |