aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-04-02 18:03:10 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-04-02 18:03:10 +0000
commit5274a4afb720858bf1ab927fc90068f1a8f12eb2 (patch)
treefd4e2cee00ab00010e402e7b2b4c39335b9aca49 /lib/CodeGen/SelectionDAG
parentb84d5a476a8e678dbdeef848b22ea22c24632e11 (diff)
downloadexternal_llvm-5274a4afb720858bf1ab927fc90068f1a8f12eb2.zip
external_llvm-5274a4afb720858bf1ab927fc90068f1a8f12eb2.tar.gz
external_llvm-5274a4afb720858bf1ab927fc90068f1a8f12eb2.tar.bz2
To convert the StopPoint insn into an assembler directive by ISel, we need to have access to the line number field. So we convert that info as an operand by custom handling DBG_STOPPOINT in legalize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 888eeda..8d1ea8d 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1314,6 +1314,10 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
}
break;
}
+ case TargetLowering::Custom:
+ Result = TLI.LowerOperation(Op, DAG);
+ if (Result.getNode())
+ break;
case TargetLowering::Legal: {
LegalizeAction Action = getTypeAction(Node->getOperand(1).getValueType());
if (Action == Legal && Tmp1 == Node->getOperand(0))