summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-09-20 16:27:05 +0000
committerBill Wendling <isanbard@gmail.com>2012-09-20 16:27:05 +0000
commitabac66150cd9b8a16865db399a930e823206b3b7 (patch)
tree66628d86787a240e890ed9c86a66278f97979d65 /llvm/lib/CodeGen/MachineFunction.cpp
parentb4e211cd19201d2b344f40123411e2529806f6c0 (diff)
downloadbcm5719-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.cpp4
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.
OpenPOWER on IntegriCloud