diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-10 03:53:12 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-10 03:53:12 +0000 |
commit | 6ff5aa7c87239a3182b916988259b9c3cd26afc0 (patch) | |
tree | 4e035e70219c0769d50008e3da46c4a63803da5c /llvm/lib/Support/MemoryBuffer.cpp | |
parent | e42bafece17690602b3ce5599f743b4ebef8fe7a (diff) | |
download | llvm-6ff5aa7c87239a3182b916988259b9c3cd26afc0.zip llvm-6ff5aa7c87239a3182b916988259b9c3cd26afc0.tar.gz llvm-6ff5aa7c87239a3182b916988259b9c3cd26afc0.tar.bz2 |
[C++11] Remove 'virtual' keyword from methods marked with 'override' keyword.
llvm-svn: 203442
Diffstat (limited to 'llvm/lib/Support/MemoryBuffer.cpp')
-rw-r--r-- | llvm/lib/Support/MemoryBuffer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Support/MemoryBuffer.cpp b/llvm/lib/Support/MemoryBuffer.cpp index c7f76d3..2d593a8 100644 --- a/llvm/lib/Support/MemoryBuffer.cpp +++ b/llvm/lib/Support/MemoryBuffer.cpp @@ -91,12 +91,12 @@ public: init(InputData.begin(), InputData.end(), RequiresNullTerminator); } - virtual const char *getBufferIdentifier() const override { + const char *getBufferIdentifier() const override { // The name is stored after the class itself. return reinterpret_cast<const char*>(this + 1); } - virtual BufferKind getBufferKind() const override { + BufferKind getBufferKind() const override { return MemoryBuffer_Malloc; } }; @@ -217,12 +217,12 @@ public: } } - virtual const char *getBufferIdentifier() const override { + const char *getBufferIdentifier() const override { // The name is stored after the class itself. return reinterpret_cast<const char *>(this + 1); } - virtual BufferKind getBufferKind() const override { + BufferKind getBufferKind() const override { return MemoryBuffer_MMap; } }; |