summaryrefslogtreecommitdiff
path: root/tools/lli/lli.cpp
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/lli/lli.cpp
parent838cb749dceb62a35d1966833f1a577cd61938ad (diff)
downloadllvm-c83e68f7326f424876198514eb2ad89110f52c45.tar.gz
llvm-c83e68f7326f424876198514eb2ad89110f52c45.tar.bz2
llvm-c83e68f7326f424876198514eb2ad89110f52c45.tar.xz
[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/lli/lli.cpp')
-rw-r--r--tools/lli/lli.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index a9125a48b8..c0c0f9d2b2 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -262,7 +262,7 @@ public:
}
virtual ~LLIObjectCache() {}
- virtual void notifyObjectCompiled(const Module *M, const MemoryBuffer *Obj) {
+ void notifyObjectCompiled(const Module *M, const MemoryBuffer *Obj) override {
const std::string ModuleID = M->getModuleIdentifier();
std::string CacheName;
if (!getCacheFilename(ModuleID, CacheName))
@@ -278,7 +278,7 @@ public:
outfile.close();
}
- virtual MemoryBuffer* getObject(const Module* M) {
+ MemoryBuffer* getObject(const Module* M) override {
const std::string ModuleID = M->getModuleIdentifier();
std::string CacheName;
if (!getCacheFilename(ModuleID, CacheName))