diff options
author | Devang Patel <dpatel@apple.com> | 2010-04-05 21:09:15 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-04-05 21:09:15 +0000 |
commit | a2c048eaf8c0f0d0dabd800bdd8ae7add43c0b74 (patch) | |
tree | d7cbd0720c769b20da973929d912ea0ad281db40 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 7dd816097a8f5b7bb64243fafb529eea311cc5ad (diff) | |
download | bcm5719-llvm-a2c048eaf8c0f0d0dabd800bdd8ae7add43c0b74.tar.gz bcm5719-llvm-a2c048eaf8c0f0d0dabd800bdd8ae7add43c0b74.zip |
Emit debug info for objc getters and setters.
llvm-svn: 100462
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 4f14f94388f..bcbda8a0a74 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1380,7 +1380,9 @@ void CGDebugInfo::EmitStopPoint(llvm::Function *Fn, CGBuilderTy &Builder) { || (SM.getInstantiationLineNumber(CurLoc) == SM.getInstantiationLineNumber(PrevLoc) && SM.isFromSameFile(CurLoc, PrevLoc))) - return; + // New Builder may not be in sync with CGDebugInfo. + if (!Builder.getCurrentDebugLocation().isUnknown()) + return; // Update last state. PrevLoc = CurLoc; |