From: David Blaikie Date: Thu, 4 Jun 2015 20:41:51 +0000 (+0000) Subject: Retry defaulting the virtual dtor in LoadedObjectInfo X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ea3663052887d2b1ffdbb01f2e26101de87f9eee;p=oota-llvm.git Retry defaulting the virtual dtor in LoadedObjectInfo Originally committed in r237975, GCC 4.7 gave a compilation error regarding "looser throw specification" though it seemed to be pointing to a virtual defaulted dtor in a base class and an override defaulted dtor in a derived class - so I'm not quite sure why/how they could end up with different throw specifications. To simplify and reduce the risk of this, I've just removed the pointless override in the derived class, the base class's should be sufficient. *fingers crossed* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239088 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/DebugInfo/DIContext.h b/include/llvm/DebugInfo/DIContext.h index 7be795f9a43..d8830da56b5 100644 --- a/include/llvm/DebugInfo/DIContext.h +++ b/include/llvm/DebugInfo/DIContext.h @@ -141,7 +141,7 @@ private: /// on the fly. class LoadedObjectInfo { public: - virtual ~LoadedObjectInfo() {} + virtual ~LoadedObjectInfo() = default; /// Obtain the Load Address of a section by Name. /// diff --git a/include/llvm/ExecutionEngine/RuntimeDyld.h b/include/llvm/ExecutionEngine/RuntimeDyld.h index ac0151aa7ec..1d75346fee3 100644 --- a/include/llvm/ExecutionEngine/RuntimeDyld.h +++ b/include/llvm/ExecutionEngine/RuntimeDyld.h @@ -62,8 +62,6 @@ public: unsigned EndIdx) : RTDyld(RTDyld), BeginIdx(BeginIdx), EndIdx(EndIdx) { } - virtual ~LoadedObjectInfo() = default; - virtual object::OwningBinary getObjectForDebug(const object::ObjectFile &Obj) const = 0;