summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-05 17:49:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-05 17:49:31 +0000
commit0bca63a33a518cd576fa0e29ddeede6fdd181010 (patch)
tree6d759a57d3a522ba5d0bf1c221ed43b219ee06f9 /llvm/include
parent96f8f9339d80cc34de01928550237172e6d17164 (diff)
downloadbcm5719-llvm-0bca63a33a518cd576fa0e29ddeede6fdd181010.tar.gz
bcm5719-llvm-0bca63a33a518cd576fa0e29ddeede6fdd181010.zip
Revert "Fix an invalid check for duplicate option categories."
This reverts commit r200853. It was causing clang/Analysis/checker-plugins.c to crash. llvm-svn: 200858
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Support/CommandLine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index b29fc873603..515b0bd00f9 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/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).
OpenPOWER on IntegriCloud