summaryrefslogtreecommitdiff
path: root/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-09-23 02:12:10 +0000
committerCraig Topper <craig.topper@gmail.com>2012-09-23 02:12:10 +0000
commita96a1824747632ce87ef065b4a13fb777d2b14d6 (patch)
tree7a4851895fbb852ec33c6b8ece55584e9ad03014 /include/llvm/Support/CommandLine.h
parent4d6b84028ab3b135308296d61a8acfc3fd0b1fb1 (diff)
downloadllvm-a96a1824747632ce87ef065b4a13fb777d2b14d6.tar.gz
llvm-a96a1824747632ce87ef065b4a13fb777d2b14d6.tar.bz2
llvm-a96a1824747632ce87ef065b4a13fb777d2b14d6.tar.xz
Add LLVM_OVERRIDE to methods that override their base classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r--include/llvm/Support/CommandLine.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index ae1570da9c..d0c304712a 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -1608,15 +1608,16 @@ public:
class alias : public Option {
Option *AliasFor;
virtual bool handleOccurrence(unsigned pos, StringRef /*ArgName*/,
- StringRef Arg) {
+ StringRef Arg) LLVM_OVERRIDE {
return AliasFor->handleOccurrence(pos, AliasFor->ArgStr, Arg);
}
// Handle printing stuff...
- virtual size_t getOptionWidth() const;
- virtual void printOptionInfo(size_t GlobalWidth) const;
+ virtual size_t getOptionWidth() const LLVM_OVERRIDE;
+ virtual void printOptionInfo(size_t GlobalWidth) const LLVM_OVERRIDE;
// Aliases do not need to print their values.
- virtual void printOptionValue(size_t /*GlobalWidth*/, bool /*Force*/) const {}
+ virtual void printOptionValue(size_t /*GlobalWidth*/,
+ bool /*Force*/) const LLVM_OVERRIDE {}
void done() {
if (!hasArgStr())