diff options
Diffstat (limited to 'lib/Support/MemoryBuffer.cpp')
-rw-r--r-- | lib/Support/MemoryBuffer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp index c7f76d3d7e..2d593a8f41 100644 --- a/lib/Support/MemoryBuffer.cpp +++ b/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; } }; |