Change how MachineDebugInfo is fetched.

llvm-svn: 25089
This commit is contained in:
Jim Laskey 2006-01-04 13:42:59 +00:00
parent 9744c6292b
commit 6f9ff633a6
1 changed files with 1 additions and 1 deletions

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 #