summaryrefslogtreecommitdiff
path: root/tools/llvm-readobj
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-03-08 08:27:28 +0000
committerCraig Topper <craig.topper@gmail.com>2014-03-08 08:27:28 +0000
commitc83e68f7326f424876198514eb2ad89110f52c45 (patch)
treebfc2d328801ff1f8ec2206613c4e3f8e429a500a /tools/llvm-readobj
parent838cb749dceb62a35d1966833f1a577cd61938ad (diff)
[C++11] Add 'override' keyword to virtual methods that override their base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-readobj')
-rw-r--r--tools/llvm-readobj/ELFDumper.cpp24
-rw-r--r--tools/llvm-readobj/Error.cpp6
2 files changed, 15 insertions, 15 deletions
diff --git a/tools/llvm-readobj/ELFDumper.cpp b/tools/llvm-readobj/ELFDumper.cpp
index cc51089afde..e4532a5476e 100644
--- a/tools/llvm-readobj/ELFDumper.cpp
+++ b/tools/llvm-readobj/ELFDumper.cpp
@@ -42,18 +42,18 @@ public:
ELFDumper(const ELFFile<ELFT> *Obj, StreamWriter &Writer)
: ObjDumper(Writer), Obj(Obj) {}
- virtual void printFileHeaders() override;
- virtual void printSections() override;
- virtual void printRelocations() override;
- virtual void printSymbols() override;
- virtual void printDynamicSymbols() override;
- virtual void printUnwindInfo() override;
-
- virtual void printDynamicTable() override;
- virtual void printNeededLibraries() override;
- virtual void printProgramHeaders() override;
-
- virtual void printAttributes() override;
+ void printFileHeaders() override;
+ void printSections() override;
+ void printRelocations() override;
+ void printSymbols() override;
+ void printDynamicSymbols() override;
+ void printUnwindInfo() override;
+
+ void printDynamicTable() override;
+ void printNeededLibraries() override;
+ void printProgramHeaders() override;
+
+ void printAttributes() override;
private:
typedef ELFFile<ELFT> ELFO;
diff --git a/tools/llvm-readobj/Error.cpp b/tools/llvm-readobj/Error.cpp
index a6c61321c6d..1aed92bc8dd 100644
--- a/tools/llvm-readobj/Error.cpp
+++ b/tools/llvm-readobj/Error.cpp
@@ -19,9 +19,9 @@ using namespace llvm;
namespace {
class _readobj_error_category : public _do_message {
public:
- virtual const char* name() const;
- virtual std::string message(int ev) const;
- virtual error_condition default_error_condition(int ev) const;
+ const char* name() const override;
+ std::string message(int ev) const override;
+ error_condition default_error_condition(int ev) const override;
};
} // namespace