aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-09-21 15:26:31 +0000
committerBill Wendling <isanbard@gmail.com>2012-09-21 15:26:31 +0000
commit9be7759ee11024c3611c5481bd0a889db76aad13 (patch)
tree7f5fea31e4256f1e58d316ff7fd439a531ac912b /llvm/lib/CodeGen/MachineFunction.cpp
parent736a4fc4fb535f4d7bc6f00124e8e391d2096c41 (diff)
downloadllvm-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.cpp4
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.