summaryrefslogtreecommitdiff
path: root/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
commitf2e89e00b4c4ecfa5a092a479ccab1ed8677eede (patch)
treeda39c70cb12e9a479178eaa5b98549aef85082db /lib/CodeGen/MachineFunction.cpp
parent342cea9a0a6990b03b82b95174fc5ac0ec6f61e1 (diff)
downloadllvm-f2e89e00b4c4ecfa5a092a479ccab1ed8677eede.tar.gz
llvm-f2e89e00b4c4ecfa5a092a479ccab1ed8677eede.tar.bz2
llvm-f2e89e00b4c4ecfa5a092a479ccab1ed8677eede.tar.xz
Make the 'get*AlignmentFromAttr' functions into member functions within the Attributes class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r--lib/CodeGen/MachineFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index 328722bad4..304e39e159 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/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.