Set default location for the function if it is not already set.

This code is not  yet enabled.

llvm-svn: 83349
This commit is contained in:
Devang Patel 2009-10-06 00:09:08 +00:00
parent 3b3d8a9d09
commit 6a7f2ee022

View File

@ -747,6 +747,8 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn,
DebugLoc Loc = ExtractDebugLocation(DILoc,
MF.getDebugLocInfo());
FastIS->setCurDebugLoc(Loc);
if (MF.getDefaultDebugLoc().isUnknown())
MF.setDefaultDebugLoc(Loc);
}
}