Hide MetadataContext implementation details.
[oota-llvm.git] / include / llvm / PassSupport.h
index 7121835a7e524f88be44c505583039aad3f54528..d7f3097bdc8c4fc508304ffdd2f7601a4f40943c 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef LLVM_PASS_SUPPORT_H
 #define LLVM_PASS_SUPPORT_H
 
-// No need to include Pass.h, we are being included by it!
+#include "Pass.h"
 
 namespace llvm {
 
@@ -127,13 +127,6 @@ public:
     return ItfImpl;
   }
 
-  /// getPassInfo - Deprecated API compaatibility function. This function
-  /// just returns 'this'.
-  ///
-  const PassInfo *getPassInfo() const {
-    return this;
-  }
-
 protected:
   void registerPass();
   void unregisterPass();
@@ -185,7 +178,7 @@ struct RegisterPass : public PassInfo {
 ///
 /// If no analysis implementing the interface is available, a default
 /// implementation is created and added.  A pass registers itself as the default
-/// implementation by specifying 'true' as the third template argument of this
+/// implementation by specifying 'true' as the second template argument of this
 /// class.
 ///
 /// In addition to registering itself as an analysis group member, a pass must
@@ -197,14 +190,11 @@ struct RegisterPass : public PassInfo {
 /// a nice name with the interface.
 ///
 class RegisterAGBase : public PassInfo {
-  PassInfo *InterfaceInfo;
-  const PassInfo *ImplementationInfo;
-  bool isDefaultImplementation;
 protected:
-  explicit RegisterAGBase(const char *Name,
-                          intptr_t InterfaceID,
-                          intptr_t PassID = 0,
-                          bool isDefault = false);
+  RegisterAGBase(const char *Name,
+                 intptr_t InterfaceID,
+                 intptr_t PassID = 0,
+                 bool isDefault = false);
 };
 
 template<typename Interface, bool Default = false>