diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-09-21 15:26:31 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-09-21 15:26:31 +0000 |
commit | 9be7759ee11024c3611c5481bd0a889db76aad13 (patch) | |
tree | 7f5fea31e4256f1e58d316ff7fd439a531ac912b /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 736a4fc4fb535f4d7bc6f00124e8e391d2096c41 (diff) | |
download | llvm-9be7759ee11024c3611c5481bd0a889db76aad13.zip llvm-9be7759ee11024c3611c5481bd0a889db76aad13.tar.gz llvm-9be7759ee11024c3611c5481bd0a889db76aad13.tar.bz2 |
Make the 'get*AlignmentFromAttr' functions into member functions within the Attributes class. Now with fix.
llvm-svn: 164370
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 328722b..304e39e 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -60,8 +60,8 @@ MachineFunction::MachineFunction(const Function *F, const TargetMachine &TM, MFInfo = 0; FrameInfo = new (Allocator) MachineFrameInfo(*TM.getFrameLowering()); if (Fn->hasFnAttr(Attribute::StackAlignment)) - FrameInfo->ensureMaxAlignment(Attribute::getStackAlignmentFromAttrs( - Fn->getAttributes().getFnAttributes())); + FrameInfo->ensureMaxAlignment(Fn->getAttributes(). + getFnAttributes().getStackAlignment()); ConstantPool = new (Allocator) MachineConstantPool(TM.getTargetData()); Alignment = TM.getTargetLowering()->getMinFunctionAlignment(); // FIXME: Shouldn't use pref alignment if explicit alignment is set on Fn. |