diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-04-11 02:11:45 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-04-11 02:11:45 +0000 |
commit | f817c1cb9afe641516b21fcc6e400681025f18f9 (patch) | |
tree | 06bc60f7ff86fcc42f6b97ac69337b5b691528ae /llvm/tools | |
parent | 34eb20725d9d923f6f2ff9f205f198d5f3df022b (diff) | |
download | bcm5719-llvm-f817c1cb9afe641516b21fcc6e400681025f18f9.tar.gz bcm5719-llvm-f817c1cb9afe641516b21fcc6e400681025f18f9.zip |
Use 'override/final' instead of 'virtual' for overridden methods
The patch is generated using clang-tidy misc-use-override check.
This command was used:
tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \
-checks='-*,misc-use-override' -header-filter='llvm|clang' \
-j=32 -fix -format
http://reviews.llvm.org/D8925
llvm-svn: 234679
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/bugpoint/ToolRunner.h | 2 | ||||
-rw-r--r-- | llvm/tools/lli/RemoteMemoryManager.h | 2 | ||||
-rw-r--r-- | llvm/tools/lli/RemoteTargetExternal.h | 2 | ||||
-rw-r--r-- | llvm/tools/lli/lli.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/bugpoint/ToolRunner.h b/llvm/tools/bugpoint/ToolRunner.h index 454724ace5c..5d67a942687 100644 --- a/llvm/tools/bugpoint/ToolRunner.h +++ b/llvm/tools/bugpoint/ToolRunner.h @@ -165,7 +165,7 @@ public: ToolArgs.clear(); if (Args) ToolArgs = *Args; } - ~LLC() { delete gcc; } + ~LLC() override { delete gcc; } /// compileProgram - Compile the specified program from bitcode to executable /// code. This does not produce any output, it is only used when debugging diff --git a/llvm/tools/lli/RemoteMemoryManager.h b/llvm/tools/lli/RemoteMemoryManager.h index 895bcdac4d1..5733fa53f3e 100644 --- a/llvm/tools/lli/RemoteMemoryManager.h +++ b/llvm/tools/lli/RemoteMemoryManager.h @@ -64,7 +64,7 @@ private: public: RemoteMemoryManager() : Target(nullptr) {} - virtual ~RemoteMemoryManager(); + ~RemoteMemoryManager() override; uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, diff --git a/llvm/tools/lli/RemoteTargetExternal.h b/llvm/tools/lli/RemoteTargetExternal.h index bb621f5c50f..afe8570ff49 100644 --- a/llvm/tools/lli/RemoteTargetExternal.h +++ b/llvm/tools/lli/RemoteTargetExternal.h @@ -106,7 +106,7 @@ public: void stop() override; RemoteTargetExternal(std::string &Name) : RemoteTarget(), ChildName(Name) {} - virtual ~RemoteTargetExternal() {} + ~RemoteTargetExternal() override {} private: std::string ChildName; diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index 47ce2c0ac34..c1e3522743a 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/tools/lli/lli.cpp @@ -271,7 +271,7 @@ public: this->CacheDir[this->CacheDir.size() - 1] != '/') this->CacheDir += '/'; } - virtual ~LLIObjectCache() {} + ~LLIObjectCache() override {} void notifyObjectCompiled(const Module *M, MemoryBufferRef Obj) override { const std::string ModuleID = M->getModuleIdentifier(); |