Fix an invalid check for duplicate option categories.
[oota-llvm.git] / include / llvm / Support / CommandLine.h
index 515b0bd00f93f657fad8a8d14188a0ae286913bd..b29fc8736034993d025625d5cb9f00ae73019eb6 100644 (file)
@@ -149,8 +149,8 @@ private:
 public:
   OptionCategory(const char *const Name, const char *const Description = 0)
       : Name(Name), Description(Description) { registerCategory(); }
 public:
   OptionCategory(const char *const Name, const char *const Description = 0)
       : Name(Name), Description(Description) { registerCategory(); }
-  const char *getName() { return Name; }
-  const char *getDescription() { return Description; }
+  const char *getName() const { return Name; }
+  const char *getDescription() const { return Description; }
 };
 
 // The general Option Category (used as default category).
 };
 
 // The general Option Category (used as default category).