summaryrefslogtreecommitdiff
path: root/lib/Support/MemoryBuffer.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-09-23 02:12:10 +0000
committerCraig Topper <craig.topper@gmail.com>2012-09-23 02:12:10 +0000
commita96a1824747632ce87ef065b4a13fb777d2b14d6 (patch)
tree7a4851895fbb852ec33c6b8ece55584e9ad03014 /lib/Support/MemoryBuffer.cpp
parent4d6b84028ab3b135308296d61a8acfc3fd0b1fb1 (diff)
downloadllvm-a96a1824747632ce87ef065b4a13fb777d2b14d6.tar.gz
llvm-a96a1824747632ce87ef065b4a13fb777d2b14d6.tar.bz2
llvm-a96a1824747632ce87ef065b4a13fb777d2b14d6.tar.xz
Add LLVM_OVERRIDE to methods that override their base classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/MemoryBuffer.cpp')
-rw-r--r--lib/Support/MemoryBuffer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp
index 992f03c520..e7080701eb 100644
--- a/lib/Support/MemoryBuffer.cpp
+++ b/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;
}
};