Make CallingConv::ID an alias of "unsigned".
[oota-llvm.git] / include / llvm / IR / CallingConv.h
index 1eaf4f7f469fe8b252940e816655d971706ccdac..702c35f58fa310ea2ad56cabe13d52167872af4a 100644 (file)
@@ -20,10 +20,13 @@ namespace llvm {
 /// the well-known calling conventions.
 ///
 namespace CallingConv {
+  /// LLVM IR allows to use arbitrary numbers as calling convention identifiers.
+  typedef unsigned ID;
+
   /// A set of enums which specify the assigned numeric values for known llvm
   /// calling conventions.
   /// @brief LLVM Calling Convention Representation
-  enum ID {
+  enum {
     /// C - The default llvm calling convention, compatible with C.  This
     /// convention is the only calling convention that supports varargs calls.
     /// As with typical C calling conventions, the callee/caller have to