diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-03-24 03:57:38 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-03-24 03:57:38 +0000 |
commit | 4cbd55062d2b596008d2f20d74401a2144982b2d (patch) | |
tree | 647a4b061e287b0b5d075fffad658f526da0d5f3 /include | |
parent | 4fad51370455296216bde8b8ab8c267a33e632c1 (diff) | |
download | external_llvm-4cbd55062d2b596008d2f20d74401a2144982b2d.zip external_llvm-4cbd55062d2b596008d2f20d74401a2144982b2d.tar.gz external_llvm-4cbd55062d2b596008d2f20d74401a2144982b2d.tar.bz2 |
Fix padding when allocating local variables on stack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineCodeForMethod.h | 5 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/MachineCodeForMethod.h b/include/llvm/CodeGen/MachineCodeForMethod.h index 9970c1f..d8f3339 100644 --- a/include/llvm/CodeGen/MachineCodeForMethod.h +++ b/include/llvm/CodeGen/MachineCodeForMethod.h @@ -73,11 +73,12 @@ public: int computeOffsetforLocalVar (const TargetMachine& target, const Value* local, - unsigned int size = 0); + unsigned int& getPaddedSize, + unsigned int sizeToUse = 0); int allocateLocalVar (const TargetMachine& target, const Value* local, - unsigned int size = 0); + unsigned int sizeToUse = 0); int allocateSpilledValue (const TargetMachine& target, const Type* type); diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 9970c1f..d8f3339 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -73,11 +73,12 @@ public: int computeOffsetforLocalVar (const TargetMachine& target, const Value* local, - unsigned int size = 0); + unsigned int& getPaddedSize, + unsigned int sizeToUse = 0); int allocateLocalVar (const TargetMachine& target, const Value* local, - unsigned int size = 0); + unsigned int sizeToUse = 0); int allocateSpilledValue (const TargetMachine& target, const Type* type); |