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 | 4274a326bee55f163283cbc25b9c3ef7411535b7 (patch) | |
tree | 6ce9713e12c104b343239108a8a05470cbdbbf9c /clang/lib/CodeGen | |
parent | e0717ab39cc3ec343b54282854c7a0419cf23fdd (diff) | |
download | bcm5719-llvm-4274a326bee55f163283cbc25b9c3ef7411535b7.tar.gz bcm5719-llvm-4274a326bee55f163283cbc25b9c3ef7411535b7.zip |
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.
llvm-svn: 93389
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 8b03ca92af3..bad5fbb9808 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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(); |