]> granicus.if.org Git - clang/commitdiff
Because CurLoc is the current source location as far as CGDebugInfo is concerned...
authorDevang Patel <dpatel@apple.com>
Thu, 14 Jan 2010 00:48:09 +0000 (00:48 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 14 Jan 2010 00:48:09 +0000 (00:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93389 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 8b03ca92af302599e8746bcebd77b89b8cb82ff1..bad5fbb9808cc096974707e1e76de4b28cc122b4 100644 (file)
@@ -1014,7 +1014,6 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, QualType FnType,
     LinkageName = Name;
   }
 
-  // FIXME: Why is this using CurLoc???
   llvm::DICompileUnit Unit = getOrCreateCompileUnit(CurLoc);
   SourceManager &SM = CGM.getContext().getSourceManager();
   unsigned LineNo = SM.getPresumedLoc(CurLoc).getLine();