[cfe-commits] r135456 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Devang Patel
dpatel at apple.com
Mon Jul 18 17:52:18 PDT 2011
Author: dpatel
Date: Mon Jul 18 19:52:18 2011
New Revision: 135456
URL: http://llvm.org/viewvc/llvm-project?rev=135456&view=rev
Log:
Simplify.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=135456&r1=135455&r2=135456&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Jul 18 19:52:18 2011
@@ -1739,12 +1739,8 @@
// Don't bother if things are the same as last time.
SourceManager &SM = CGM.getContext().getSourceManager();
- if (CurLoc == PrevLoc
- || ((SM.getInstantiationLineNumber(CurLoc)
- == SM.getInstantiationLineNumber(PrevLoc))
- && (SM.getInstantiationColumnNumber(CurLoc)
- == SM.getInstantiationColumnNumber(PrevLoc))
- && SM.isFromSameFile(CurLoc, PrevLoc)))
+ if (CurLoc == PrevLoc ||
+ SM.getInstantiationLoc(CurLoc) == SM.getInstantiationLoc(PrevLoc))
// New Builder may not be in sync with CGDebugInfo.
if (!Builder.getCurrentDebugLocation().isUnknown())
return;
More information about the cfe-commits
mailing list