From 4cbd55062d2b596008d2f20d74401a2144982b2d Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Sun, 24 Mar 2002 03:57:38 +0000 Subject: [PATCH] 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 --- include/llvm/CodeGen/MachineCodeForMethod.h | 5 +++-- 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 9970c1f9263..d8f3339e170 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 9970c1f9263..d8f3339e170 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); -- 2.34.1