diff options
author | Devang Patel <dpatel@apple.com> | 2010-01-14 00:48:09 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-01-14 00:48:09 +0000 |
commit | bca10069a9d5243da33cfc9a471ea239bb49e1b8 (patch) | |
tree | 81ace70c6cc958d113debb135b812055a20bb8d7 /lib/CodeGen/CGDebugInfo.cpp | |
parent | 6660d845af8edb99098a08cf2539233a3be650b3 (diff) |
Because CurLoc is the current source location as far as CGDebugInfo is concerned. It is expected that this is set (usually left bracket location of function body compound statement) before EmitfunctionStart() is used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 8b03ca92af..bad5fbb980 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -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(); |