r236355 - Remove some code left around for debugging purposes

David Majnemer david.majnemer at gmail.com
Fri May 1 14:42:19 PDT 2015


Author: majnemer
Date: Fri May  1 16:42:19 2015
New Revision: 236355

URL: http://llvm.org/viewvc/llvm-project?rev=236355&view=rev
Log:
Remove some code left around for debugging purposes

Modified:
    cfe/trunk/lib/AST/VTableBuilder.cpp

Modified: cfe/trunk/lib/AST/VTableBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/VTableBuilder.cpp?rev=236355&r1=236354&r2=236355&view=diff
==============================================================================
--- cfe/trunk/lib/AST/VTableBuilder.cpp (original)
+++ cfe/trunk/lib/AST/VTableBuilder.cpp Fri May  1 16:42:19 2015
@@ -3483,18 +3483,6 @@ static bool findPathForVPtr(ASTContext &
 
   CXXBasePaths Paths(/*FindAmbiguities=*/false, /*RecordPaths=*/false,
                      /*DetectVirtual=*/true);
-#if 0
-  std::vector<const CXXRecordDecl *> BaseLists;
-  for (const auto &B : RD->bases()) {
-    const CXXRecordDecl *Base = B.getType()->getAsCXXRecordDecl();
-    Paths.clear();
-    if (!Base->isDerivedFrom(Info->BaseWithVPtr, Paths))
-      continue;
-    for (const auto &Chain : BaseLists) {
-      const CXXRecordDecl *MostDerived = Chain.front();
-    }
-  }
-#endif
   // All virtual bases which are on the path to the BaseWithVPtr are not equal.
   // Specifically, virtual paths which introduce additional covariant thunks
   // must be preferred over paths which do not introduce such thunks.





More information about the cfe-commits mailing list