diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-08 07:51:20 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-08 07:51:20 +0000 |
commit | b51ff603eae8cd286d6e66d52e66261010d6ab70 (patch) | |
tree | b993f33c555c44d05c390c5d48e3198126c435a9 /llvm/include/llvm/ExecutionEngine/SectionMemoryManager.h | |
parent | 5f9eb0af72af4115b80d2c24becb5e85fea9b121 (diff) | |
download | bcm5719-llvm-b51ff603eae8cd286d6e66d52e66261010d6ab70.tar.gz bcm5719-llvm-b51ff603eae8cd286d6e66d52e66261010d6ab70.zip |
[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 203344
Diffstat (limited to 'llvm/include/llvm/ExecutionEngine/SectionMemoryManager.h')
-rw-r--r-- | llvm/include/llvm/ExecutionEngine/SectionMemoryManager.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/SectionMemoryManager.h b/llvm/include/llvm/ExecutionEngine/SectionMemoryManager.h index fd6e41f91ff..f68028b52d5 100644 --- a/llvm/include/llvm/ExecutionEngine/SectionMemoryManager.h +++ b/llvm/include/llvm/ExecutionEngine/SectionMemoryManager.h @@ -48,19 +48,18 @@ public: /// /// The value of \p Alignment must be a power of two. If \p Alignment is zero /// a default alignment of 16 will be used. - virtual uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, - unsigned SectionID, - StringRef SectionName); + uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, + unsigned SectionID, + StringRef SectionName) override; /// \brief Allocates a memory block of (at least) the given size suitable for /// executable code. /// /// The value of \p Alignment must be a power of two. If \p Alignment is zero /// a default alignment of 16 will be used. - virtual uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, - unsigned SectionID, - StringRef SectionName, - bool isReadOnly); + uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, + unsigned SectionID, StringRef SectionName, + bool isReadOnly) override; /// \brief Update section-specific memory permissions and other attributes. /// @@ -73,7 +72,7 @@ public: /// operations needed to reliably use the memory are also performed. /// /// \returns true if an error occurred, false otherwise. - virtual bool finalizeMemory(std::string *ErrMsg = 0); + bool finalizeMemory(std::string *ErrMsg = 0) override; /// \brief Invalidate instruction cache for code sections. /// |