[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
This commit is contained in:
Craig Topper
2014-03-08 08:27:28 +00:00
parent 838cb749dc
commit c83e68f732
22 changed files with 204 additions and 201 deletions

View File

@ -61,17 +61,18 @@ public:
SmallVector<sys::MemoryBlock, 16> DataMemory;
uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment,
unsigned SectionID, StringRef SectionName);
unsigned SectionID,
StringRef SectionName) override;
uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment,
unsigned SectionID, StringRef SectionName,
bool IsReadOnly);
bool IsReadOnly) override;
virtual void *getPointerToNamedFunction(const std::string &Name,
bool AbortOnFailure = true) {
void *getPointerToNamedFunction(const std::string &Name,
bool AbortOnFailure = true) override {
return 0;
}
bool finalizeMemory(std::string *ErrMsg) { return false; }
bool finalizeMemory(std::string *ErrMsg) override { return false; }
// Invalidate instruction cache for sections with execute permissions.
// Some platforms with separate data cache and instruction cache require