diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-03 17:27:15 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-03 17:27:15 +0000 | 
| commit | 67a71b3184ce20a901e874d0ee25e01397dd87ef (patch) | |
| tree | 836a05cff50ca46176117b86029f061fa4db54f0 /lib/CodeGen/MachineFunction.cpp | |
| parent | 6fe5c7aa327e188b7176daa5595bbf075a6b94df (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
| -rw-r--r-- | lib/CodeGen/MachineFunction.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index f141c5677087..4377d5bd71ac 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/lib/CodeGen/MachineFunction.cpp @@ -95,6 +95,9 @@ MachineFunction::MachineFunction(Function *F, const TargetMachine &TM,    MFInfo = 0;    FrameInfo = new (Allocator.Allocate<MachineFrameInfo>())                    MachineFrameInfo(*TM.getFrameInfo()); +  if (Fn->hasFnAttr(Attribute::StackAlignment)) +    FrameInfo->setMaxAlignment(Attribute::getStackAlignmentFromAttrs( +        Fn->getAttributes().getFnAttributes()));    ConstantPool = new (Allocator.Allocate<MachineConstantPool>())                       MachineConstantPool(TM.getTargetData());    Alignment = TM.getTargetLowering()->getFunctionAlignment(F);  | 
