Add comment.

llvm-svn: 93434
This commit is contained in:
Devang Patel 2010-01-14 18:06:13 +00:00
parent d2e6a45722
commit ea84f59f5c
1 changed files with 3 additions and 0 deletions

View File

@ -1014,6 +1014,9 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, QualType FnType,
LinkageName = Name;
}
// It is expected that CurLoc is set before using EmitFunctionStart.
// Usually, CurLoc points to the left bracket location of compound
// statement representing function body.
llvm::DICompileUnit Unit = getOrCreateCompileUnit(CurLoc);
SourceManager &SM = CGM.getContext().getSourceManager();
unsigned LineNo = SM.getPresumedLoc(CurLoc).getLine();