[cfe-commits] r117127 - /cfe/trunk/lib/CodeGen/CGExprCXX.cpp

Devang Patel dpatel at apple.com
Fri Oct 22 11:56:27 PDT 2010


Author: dpatel
Date: Fri Oct 22 13:56:27 2010
New Revision: 117127

URL: http://llvm.org/viewvc/llvm-project?rev=117127&view=rev
Log:
Delay record type's debug info emission, in -flimit-debug-info mode, if member expression's base is call expr.

Modified:
    cfe/trunk/lib/CodeGen/CGExprCXX.cpp

Modified: cfe/trunk/lib/CodeGen/CGExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprCXX.cpp?rev=117127&r1=117126&r2=117127&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprCXX.cpp Fri Oct 22 13:56:27 2010
@@ -90,7 +90,8 @@
   const CXXMethodDecl *MD = cast<CXXMethodDecl>(ME->getMemberDecl());
 
   CGDebugInfo *DI = getDebugInfo();
-  if (DI && CGM.getCodeGenOpts().LimitDebugInfo) {
+  if (DI && CGM.getCodeGenOpts().LimitDebugInfo
+      && !isa<CallExpr>(ME->getBase())) {
     QualType PQTy = ME->getBase()->IgnoreParenImpCasts()->getType();
     if (const PointerType * PTy = dyn_cast<PointerType>(PQTy)) {
       DI->getOrCreateRecordType(PTy->getPointeeType(), 





More information about the cfe-commits mailing list