1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Change how MachineDebugInfo is fetched.

llvm-svn: 25089
This commit is contained in:
Jim Laskey 2006-01-04 13:42:59 +00:00
parent c8681a0c43
commit 1b0399e8f0

View File

@ -619,7 +619,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
default: assert(0 && "This action is not supported yet!");
case TargetLowering::Expand: {
if (TLI.isOperationLegal(ISD::DEBUG_LOC, MVT::Other)) {
MachineDebugInfo &DebugInfo = DAG.getMachineFunction().getDebugInfo();
MachineDebugInfo &DebugInfo = getMachineDebugInfo();
std::vector<SDOperand> Ops;
Ops.push_back(Tmp1); // chain
Ops.push_back(Node->getOperand(1)); // line #