Index: tools/clang/blink_gc_plugin/RecordInfo.h |
diff --git a/tools/clang/blink_gc_plugin/RecordInfo.h b/tools/clang/blink_gc_plugin/RecordInfo.h |
index e672282f4f00f365cd8a95473e9dad459ef69b23..39c13f01c6dd9dca7134df1787854fd8b7e27a41 100644 |
--- a/tools/clang/blink_gc_plugin/RecordInfo.h |
+++ b/tools/clang/blink_gc_plugin/RecordInfo.h |
@@ -16,7 +16,6 @@ |
#include "clang/AST/AST.h" |
#include "clang/AST/CXXInheritance.h" |
-#include "clang/Frontend/CompilerInstance.h" |
class RecordCache; |
@@ -27,7 +26,6 @@ |
virtual ~GraphPoint() {} |
void MarkTraced() { traced_ = true; } |
bool IsProperlyTraced() { return traced_ || !NeedsTracing().IsNeeded(); } |
- bool IsInproperlyTraced() { return traced_ && NeedsTracing().IsIllegal(); } |
virtual const TracingStatus NeedsTracing() = 0; |
private: |
@@ -160,11 +158,6 @@ |
class RecordCache { |
public: |
- RecordCache(clang::CompilerInstance& instance) |
- : instance_(instance) |
- { |
- } |
- |
RecordInfo* Lookup(clang::CXXRecordDecl* record); |
RecordInfo* Lookup(const clang::CXXRecordDecl* record) { |
@@ -195,11 +188,7 @@ |
} |
} |
- clang::CompilerInstance& instance() const { return instance_; } |
- |
private: |
- clang::CompilerInstance& instance_; |
- |
typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; |
Cache cache_; |
}; |