From 9a7cfe5a3a861aaa67cf306dc52298addc2af4e8 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 5 Feb 2014 17:49:31 +0000 Subject: Revert "Fix an invalid check for duplicate option categories." This reverts commit r200853. It was causing clang/Analysis/checker-plugins.c to crash. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200858 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/CommandLine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/llvm') diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index b29fc87360..515b0bd00f 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -149,8 +149,8 @@ private: public: OptionCategory(const char *const Name, const char *const Description = 0) : Name(Name), Description(Description) { registerCategory(); } - const char *getName() const { return Name; } - const char *getDescription() const { return Description; } + const char *getName() { return Name; } + const char *getDescription() { return Description; } }; // The general Option Category (used as default category). -- cgit v1.2.3