From c2ae7ee4024ef1a3f9d8cc95dfc4cdb048735589 Mon Sep 17 00:00:00 2001 From: scribam Date: Fri, 1 Dec 2017 22:51:00 +0100 Subject: [PATCH] Remove redondant "virtual" keyword when "override" is used --- Utilities/JIT.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Utilities/JIT.cpp b/Utilities/JIT.cpp index 7e3bd23f5b..dc5e98855d 100644 --- a/Utilities/JIT.cpp +++ b/Utilities/JIT.cpp @@ -171,7 +171,7 @@ struct MemoryManager : llvm::RTDyldMemoryManager return {addr, llvm::JITSymbolFlags::Exported}; } - virtual u8* allocateCodeSection(std::uintptr_t size, uint align, uint sec_id, llvm::StringRef sec_name) override + u8* allocateCodeSection(std::uintptr_t size, uint align, uint sec_id, llvm::StringRef sec_name) override { // Lock memory manager writer_lock lock(s_mutex); @@ -192,7 +192,7 @@ struct MemoryManager : llvm::RTDyldMemoryManager return (u8*)std::exchange(s_next, (void*)next); } - virtual u8* allocateDataSection(std::uintptr_t size, uint align, uint sec_id, llvm::StringRef sec_name, bool is_ro) override + u8* allocateDataSection(std::uintptr_t size, uint align, uint sec_id, llvm::StringRef sec_name, bool is_ro) override { // Lock memory manager writer_lock lock(s_mutex); @@ -217,7 +217,7 @@ struct MemoryManager : llvm::RTDyldMemoryManager return (u8*)std::exchange(s_next, (void*)next); } - virtual bool finalizeMemory(std::string* = nullptr) override + bool finalizeMemory(std::string* = nullptr) override { // Lock memory manager writer_lock lock(s_mutex); @@ -234,7 +234,7 @@ struct MemoryManager : llvm::RTDyldMemoryManager return false; } - virtual void registerEHFrames(u8* addr, u64 load_addr, std::size_t size) override + void registerEHFrames(u8* addr, u64 load_addr, std::size_t size) override { #ifdef _WIN32 // Lock memory manager @@ -266,7 +266,7 @@ struct MemoryManager : llvm::RTDyldMemoryManager return RTDyldMemoryManager::registerEHFrames(addr, load_addr, size); } - virtual void deregisterEHFrames(u8* addr, u64 load_addr, std::size_t size) override + void deregisterEHFrames(u8* addr, u64 load_addr, std::size_t size) override { LOG_ERROR(GENERAL, "deregisterEHFrames() called"); // Not expected @@ -284,7 +284,7 @@ struct EventListener : llvm::JITEventListener { } - virtual void NotifyObjectEmitted(const llvm::object::ObjectFile& obj, const llvm::RuntimeDyld::LoadedObjectInfo& inf) override + void NotifyObjectEmitted(const llvm::object::ObjectFile& obj, const llvm::RuntimeDyld::LoadedObjectInfo& inf) override { #ifdef _WIN32 for (auto it = obj.section_begin(), end = obj.section_end(); it != end; ++it)