From: Vikram S. Adve Date: Sun, 24 Mar 2002 03:57:38 +0000 (+0000) Subject: Fix padding when allocating local variables on stack. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4cbd55062d2b596008d2f20d74401a2144982b2d;p=oota-llvm.git 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 --- 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);