diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-04-10 22:58:43 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-04-10 22:58:43 +0000 |
commit | 9c6582129a34d68c6093817608eaf3a24daf10fa (patch) | |
tree | df53059a8dc2565fe4ec248fe09f7c1765bae970 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 79ae6008189fbc64ce01b9196e4c61e5c8f35056 (diff) | |
download | bcm5719-llvm-9c6582129a34d68c6093817608eaf3a24daf10fa.tar.gz bcm5719-llvm-9c6582129a34d68c6093817608eaf3a24daf10fa.zip |
Move the segmented stack switch to a function attribute
This removes the -segmented-stacks command line flag in favor of a
per-function "split-stack" attribute.
Patch by Luqman Aden and Alex Crichton!
llvm-svn: 205997
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 4c5b767b05a..013eef71d73 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -123,6 +123,11 @@ getOrCreateJumpTableInfo(unsigned EntryKind) { return JumpTableInfo; } +/// Should we be emitting segmented stack stuff for the function +bool MachineFunction::shouldSplitStack() { + return getFunction()->hasFnAttribute("split-stack"); +} + /// RenumberBlocks - This discards all of the MachineBasicBlock numbers and /// recomputes them. This guarantees that the MBB numbers are sequential, /// dense, and match the ordering of the blocks within the function. If a |