Fix padding when allocating local variables on stack.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 24 Mar 2002 03:57:38 +0000 (03:57 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 24 Mar 2002 03:57:38 +0000 (03:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1979 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineCodeForMethod.h
include/llvm/CodeGen/MachineFunction.h

index 9970c1f92635bd51d967af96799174d8bcce61f1..d8f3339e1709bf6b647c9aa1816d4a849cf41979 100644 (file)
@@ -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);
index 9970c1f92635bd51d967af96799174d8bcce61f1..d8f3339e1709bf6b647c9aa1816d4a849cf41979 100644 (file)
@@ -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);