Use the enum instead of 'unsigned'.
[oota-llvm.git] / include / llvm / Module.h
index e068f93deb39f58f4020cc8fe9c7a801d0df4fce..c331837f818878a189be3381d87ba2fec997b8d7 100644 (file)
@@ -180,10 +180,10 @@ public:
   enum ModAttrBehavior { Error = 1, Warning  = 2, Require = 3, Override = 4 };
 
   struct ModuleFlagEntry {
-    unsigned Behavior;
+    ModAttrBehavior Behavior;
     MDString *Key;
     Value *Val;
-    ModuleFlagEntry(unsigned B, MDString *K, Value *V)
+    ModuleFlagEntry(ModAttrBehavior B, MDString *K, Value *V)
       : Behavior(B), Key(K), Val(V) {}
   };