Displaying 1 result from an estimated 1 matches for "llvm_support_registry_h".
2007 Aug 31
3
[LLVMdev] PATCH: Registry template
...cense. See LICENSE.TXT for
details.
+//
+//
===---------------------------------------------------------------------
-===//
+//
+// Defines a registry template for discovering pluggable modules.
+//
+//
===---------------------------------------------------------------------
-===//
+
+#ifndef LLVM_SUPPORT_REGISTRY_H
+#define LLVM_SUPPORT_REGISTRY_H
+
+#include "llvm/Support/CommandLine.h"
+
+namespace llvm {
+ /// A simple registry entry which provides only a name,
description, and
+ /// no-argument constructor.
+ template <typename T>
+ class SimpleRegistryEntry {
+ const char *Name,...