mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 06:38:44 +00:00
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
This commit is contained in:
parent
bb81d97feb
commit
7bdc5f734f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user