diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-08-24 19:05:43 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-08-24 19:05:43 +0000 |
commit | a273442891ae20fd8192526132e3819ea9e5eda9 (patch) | |
tree | 0e28d05f881cbe240efb9fba0d59f0072c149869 /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | 05ea54e8869a81b8dd846397175f218f97968907 (diff) |
Move enabling the local stack allocation pass into the target where it belongs.
For now it's still a command line option, but the interface to the generic
code doesn't need to know that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index e360f2c461..4c3e796f5e 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -41,10 +41,6 @@ using namespace llvm; -// FIXME: For testing purposes only. Remove once the pre-allocation pass -// is done. -extern cl::opt<bool> EnableLocalStackAlloc; - char PEI::ID = 0; INITIALIZE_PASS(PEI, "prologepilog", @@ -560,7 +556,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) { // check for whether the frame is large enough to want to use virtual // frame index registers. Functions which don't want/need this optimization // will continue to use the existing code path. - if (EnableLocalStackAlloc && MFI->getUseLocalStackAllocationBlock()) { + if (MFI->getUseLocalStackAllocationBlock()) { unsigned Align = MFI->getLocalFrameMaxAlign(); // Adjust to alignment boundary. |