diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-09-20 16:27:05 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-09-20 16:27:05 +0000 |
commit | abac66150cd9b8a16865db399a930e823206b3b7 (patch) | |
tree | 66628d86787a240e890ed9c86a66278f97979d65 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | b4e211cd19201d2b344f40123411e2529806f6c0 (diff) | |
download | bcm5719-llvm-abac66150cd9b8a16865db399a930e823206b3b7.tar.gz bcm5719-llvm-abac66150cd9b8a16865db399a930e823206b3b7.zip |
Make the 'get*AlignmentFromAttr' functions into member functions within the Attributes class.
llvm-svn: 164308
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 328722bad48..304e39e1592 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. |