diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-02-01 09:10:45 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-01 09:10:45 +0000 |
| commit | d6e44ab5ec8bc0bb939a9a595d0c653602cf4a3d (patch) | |
| tree | 9c5579f60abb16e0ef0982d176d3b9613b2562d0 /llvm/lib/CodeGen/PrologEpilogInserter.cpp | |
| parent | 806700f9738a09c8ddee7e466d8429eda9d7ee66 (diff) | |
| download | llvm-d6e44ab5ec8bc0bb939a9a595d0c653602cf4a3d.zip llvm-d6e44ab5ec8bc0bb939a9a595d0c653602cf4a3d.tar.gz llvm-d6e44ab5ec8bc0bb939a9a595d0c653602cf4a3d.tar.bz2 | |
Remove the nasty LABEL hack with a much less evil one. Now llvm.dbg.func.start implies a stoppoint is set. SelectionDAGISel records a new source line but does not create a ISD::LABEL node for this special stoppoint. Asm printer will magically print this label. This ensures nothing is emitted before.
llvm-svn: 46635
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index 34cbb2b..41efbef 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp @@ -249,13 +249,6 @@ void PEI::saveCalleeSavedRegisters(MachineFunction &Fn) { MachineBasicBlock *MBB = Fn.begin(); MachineBasicBlock::iterator I = MBB->begin(); - // Do not insert prologue code before debug LABELs at the start of the - // entry block. - MachineModuleInfo *MMI = FFI->getMachineModuleInfo(); - if (MMI && MMI->hasDebugInfo()) - while (I != MBB->end() && I->isDebugLabel()) - ++I; - if (!TII.spillCalleeSavedRegisters(*MBB, I, CSI)) { for (unsigned i = 0, e = CSI.size(); i != e; ++i) { // Add the callee-saved register as live-in. It's killed at the spill. |
