]> granicus.if.org Git - clang/commitdiff
Add comment.
authorDevang Patel <dpatel@apple.com>
Thu, 14 Jan 2010 18:06:13 +0000 (18:06 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 14 Jan 2010 18:06:13 +0000 (18:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93434 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index bad5fbb9808cc096974707e1e76de4b28cc122b4..6cfe503d3c87ea40684891d027d6d36f9cb42585 100644 (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();