diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-08-01 21:42:05 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-08-01 21:42:05 +0000 |
commit | a5c536e1ee25daef4567e1e2a24b74f373b82011 (patch) | |
tree | ddcd932266d4b1d7a4e1f3199352e91454d617af /llvm/lib/CodeGen | |
parent | d8f4950862aa2efcf0847f7185cdc2af436ff6f8 (diff) | |
download | bcm5719-llvm-a5c536e1ee25daef4567e1e2a24b74f373b82011.tar.gz bcm5719-llvm-a5c536e1ee25daef4567e1e2a24b74f373b82011.zip |
Use function attributes to indicate that we don't want to realign the stack.
Function attributes are the future! So just query whether we want to realign the
stack directly from the function instead of through a random target options
structure.
llvm-svn: 187618
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 80cfb5e0234..0703df09a60 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -60,7 +60,8 @@ MachineFunction::MachineFunction(const Function *F, const TargetMachine &TM, RegInfo = 0; MFInfo = 0; - FrameInfo = new (Allocator) MachineFrameInfo(TM, TM.Options.RealignStack); + FrameInfo = + new (Allocator) MachineFrameInfo(TM,!F->hasFnAttribute("no-realign-stack")); if (Fn->getAttributes().hasAttribute(AttributeSet::FunctionIndex, Attribute::StackAlignment)) |