diff options
| author | Craig Topper <craig.topper@gmail.com> | 2012-09-23 02:12:10 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2012-09-23 02:12:10 +0000 |
| commit | 3186c01fecbf06bec2c4534429e3400b0042045f (patch) | |
| tree | 9c84f14b317acad7ae320bc86dd79959e83a3edf /llvm/lib/Support/MemoryBuffer.cpp | |
| parent | 66431cd10f043dfd480d5b2f1f772f6741da633d (diff) | |
| download | bcm5719-llvm-3186c01fecbf06bec2c4534429e3400b0042045f.tar.gz bcm5719-llvm-3186c01fecbf06bec2c4534429e3400b0042045f.zip | |
Add LLVM_OVERRIDE to methods that override their base classes.
llvm-svn: 164471
Diffstat (limited to 'llvm/lib/Support/MemoryBuffer.cpp')
| -rw-r--r-- | llvm/lib/Support/MemoryBuffer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Support/MemoryBuffer.cpp b/llvm/lib/Support/MemoryBuffer.cpp index 992f03c5205..e7080701eb4 100644 --- a/llvm/lib/Support/MemoryBuffer.cpp +++ b/llvm/lib/Support/MemoryBuffer.cpp @@ -81,12 +81,12 @@ public: init(InputData.begin(), InputData.end(), RequiresNullTerminator); } - virtual const char *getBufferIdentifier() const { + virtual const char *getBufferIdentifier() const LLVM_OVERRIDE { // The name is stored after the class itself. return reinterpret_cast<const char*>(this + 1); } - - virtual BufferKind getBufferKind() const { + + virtual BufferKind getBufferKind() const LLVM_OVERRIDE { return MemoryBuffer_Malloc; } }; @@ -194,8 +194,8 @@ public: sys::Path::UnMapFilePages(reinterpret_cast<const char*>(RealStart), RealSize); } - - virtual BufferKind getBufferKind() const { + + virtual BufferKind getBufferKind() const LLVM_OVERRIDE { return MemoryBuffer_MMap; } }; |

