diff options
author | Devang Patel <dpatel@apple.com> | 2010-01-14 18:06:13 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-01-14 18:06:13 +0000 |
commit | ea84f59f5c1694de6ea62669c14c143c6bf52b94 (patch) | |
tree | ca9dfe672dc2405e230d95ed228e800e486fe9b5 /clang/lib | |
parent | d2e6a457229ccf2478cbd7de5fe763b871a482d8 (diff) | |
download | bcm5719-llvm-ea84f59f5c1694de6ea62669c14c143c6bf52b94.tar.gz bcm5719-llvm-ea84f59f5c1694de6ea62669c14c143c6bf52b94.zip |
Add comment.
llvm-svn: 93434
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index bad5fbb9808..6cfe503d3c8 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -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(); |