summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-05-01 21:42:19 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-05-01 21:42:19 +0000
commit750f11533e2d2c7e6dcd54d85b5a5809a12df877 (patch)
tree3c9c866e13711134a116351347390344ee5f5c27
parent70e6a00170a44b242e1852fb0826dd51aa196e86 (diff)
downloadbcm5719-llvm-750f11533e2d2c7e6dcd54d85b5a5809a12df877.tar.gz
bcm5719-llvm-750f11533e2d2c7e6dcd54d85b5a5809a12df877.zip
Remove some code left around for debugging purposes
llvm-svn: 236355
-rw-r--r--clang/lib/AST/VTableBuilder.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/lib/AST/VTableBuilder.cpp b/clang/lib/AST/VTableBuilder.cpp
index 5c7b9d2a682..615c955e072 100644
--- a/clang/lib/AST/VTableBuilder.cpp
+++ b/clang/lib/AST/VTableBuilder.cpp
@@ -3483,18 +3483,6 @@ static bool findPathForVPtr(ASTContext &Context,
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.
OpenPOWER on IntegriCloud