summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCRegisterInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-02-01 09:10:45 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-02-01 09:10:45 +0000
commit1b08bbca5592351a940bcd164bdec724ee954326 (patch)
treef11d5f22e3bcdf9bd067d3e90ba002e1e2557c42 /lib/Target/PowerPC/PPCRegisterInfo.cpp
parenta647c92ec2b3c91e1e6de25cc5c7860912c7626b (diff)
downloadllvm-1b08bbca5592351a940bcd164bdec724ee954326.tar.gz
llvm-1b08bbca5592351a940bcd164bdec724ee954326.tar.bz2
llvm-1b08bbca5592351a940bcd164bdec724ee954326.tar.xz
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.cpp')
-rw-r--r--lib/Target/PowerPC/PPCRegisterInfo.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp
index fa218263bc..efed072786 100644
--- a/lib/Target/PowerPC/PPCRegisterInfo.cpp
+++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp
@@ -712,16 +712,6 @@ void PPCRegisterInfo::emitPrologue(MachineFunction &MF) const {
// Prepare for frame info.
unsigned FrameLabelId = 0;
- // Skip over the debug labels which mark the beginning of the function.
- if (MMI && MMI->needsFrameInfo()) {
- unsigned NumLabels = 0;
- while (NumLabels <= 1 &&
- MBBI != MBB.end() && MBBI->isDebugLabel()) {
- ++NumLabels;
- ++MBBI;
- }
- }
-
// Scan the prolog, looking for an UPDATE_VRSAVE instruction. If we find it,
// process it.
for (unsigned i = 0; MBBI != MBB.end(); ++i, ++MBBI) {