Remove MachineFunction's DefaultDebugLoc member, and make DwarfDebug.cpp
[oota-llvm.git] / lib / CodeGen / SelectionDAG / SelectionDAGISel.cpp
index 13d8c3818c12dcaddba1b7fb28e6f71111e4223a..d47c76bbbfa64e8703377c43a8104a3d09189122 100644 (file)
@@ -235,11 +235,6 @@ static void SetDebugLoc(const Instruction *I, SelectionDAGBuilder *SDB,
 
   if (FastIS)
     FastIS->setCurDebugLoc(DL);
-
-  // If the function doesn't have a default debug location yet, set
-  // it. This is a total hack.
-  if (MF->getDefaultDebugLoc().isUnknown())
-    MF->setDefaultDebugLoc(DL);
 }
 
 /// ResetDebugLoc - Set MF's and SDB's DebugLocs to Unknown.