This patch breaks up Wrap.h so that it does not have to include all of
[oota-llvm.git] / include / llvm / PassRegistry.h
index 5d89c492218d8e7dab03ab2e62bd6c59baa9cd52..f49c953e44f2e0f3e8defd7b2cc2fa92be5b310e 100644 (file)
@@ -18,6 +18,8 @@
 #define LLVM_PASSREGISTRY_H
 
 #include "llvm/ADT/StringRef.h"
+#include "llvm/Support/CBindingWrapping.h"
+#include "llvm-c/Core.h"
 
 namespace llvm {
 
@@ -79,6 +81,9 @@ public:
   void removeRegistrationListener(PassRegistrationListener *L);
 };
 
+// Create wrappers for C Binding types (see CBindingWrapping.h).
+DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassRegistry, LLVMPassRegistryRef)
+
 }
 
 #endif