Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: tools/clang/blink_gc_plugin/RecordInfo.cpp

Issue 270623009: Blink GC plugin: remove temporary exceptions for the TreeShared/Node hierarchy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/clang/blink_gc_plugin/RecordInfo.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/blink_gc_plugin/RecordInfo.cpp
diff --git a/tools/clang/blink_gc_plugin/RecordInfo.cpp b/tools/clang/blink_gc_plugin/RecordInfo.cpp
index c766d28a54bfa67ee0fef72daba9f7e771ec8b73..5250eaa084d8e0ba2c341a563188a05760f297a2 100644
--- a/tools/clang/blink_gc_plugin/RecordInfo.cpp
+++ b/tools/clang/blink_gc_plugin/RecordInfo.cpp
@@ -115,24 +115,6 @@ bool RecordInfo::IsGCFinalized() {
return false;
}
-bool RecordInfo::IsTreeShared() {
- if (Config::IsTreeSharedBase(name_))
- return true;
- if (!IsGCDerived())
- return false;
- for (CXXBasePaths::paths_iterator it = base_paths_->begin();
- it != base_paths_->end();
- ++it) {
- // TreeShared is an immediate base of GCFinalized.
- if (it->size() < 2) continue;
- const CXXBasePathElement& elem = (*it)[it->size() - 2];
- CXXRecordDecl* base = elem.Base->getType()->getAsCXXRecordDecl();
- if (Config::IsTreeSharedBase(base->getName()))
- return true;
- }
- return false;
-}
-
// A GC mixin is a class that inherits from a GC mixin base and has
// not yet been "mixed in" with another GC base class.
bool RecordInfo::IsGCMixin() {
« no previous file with comments | « tools/clang/blink_gc_plugin/RecordInfo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698