diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-01-31 10:05:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-01-31 10:05:13 +0000 |
commit | 7bdc5f734f6aa16cc300f66d2a804d75b916d12b (patch) | |
tree | feb82e59968bba773a2e4cab010af3e8acf137e0 /lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | |
parent | bb81d97feb396a8bb21d074db1c57e9f66525f40 (diff) |
Add a comment for a nasty short term hack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index ac35b40d92..3873c33a20 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -741,6 +741,10 @@ void ScheduleDAG::EmitNode(SDNode *Node, unsigned InstanceNo, unsigned NumLabels = 0; MachineBasicBlock::iterator MBBI = BB->begin(); while (MBBI != BB->end()) { + // FIXME: This is a nasty short term workaround. For now, we are + // assuming there are two debug labels at the beginning of the + // entry block: one for dbg_func_start, one for the first + // dbg_stoppoint before actual code. if (!MBBI->isDebugLabel() || ++NumLabels > 1) break; ++MBBI; |