diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-04-02 18:03:10 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-04-02 18:03:10 +0000 |
commit | cc841a3810acd2e8280ed3da4b0c2843b715cf3c (patch) | |
tree | 53276b7f2e61bc8ad9c983777652dc6172cfc635 /llvm/lib/CodeGen/SelectionDAG | |
parent | 639f2d92f85d0ad9a475edc5f3427c784f219b9b (diff) | |
download | bcm5719-llvm-cc841a3810acd2e8280ed3da4b0c2843b715cf3c.tar.gz bcm5719-llvm-cc841a3810acd2e8280ed3da4b0c2843b715cf3c.zip |
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.
llvm-svn: 68329
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 888eeda2652..8d1ea8d3a43 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/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)) |