Retry defaulting the virtual dtor in LoadedObjectInfo
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 4 Jun 2015 20:41:51 +0000 (20:41 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 4 Jun 2015 20:41:51 +0000 (20:41 +0000)
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

include/llvm/DebugInfo/DIContext.h
include/llvm/ExecutionEngine/RuntimeDyld.h

index 7be795f9a43669842ff80652781446b437b6cc99..d8830da56b518cdf352cdf036fae088b9a264792 100644 (file)
@@ -141,7 +141,7 @@ private:
 /// on the fly.
 class LoadedObjectInfo {
 public:
 /// on the fly.
 class LoadedObjectInfo {
 public:
-  virtual ~LoadedObjectInfo() {}
+  virtual ~LoadedObjectInfo() = default;
 
   /// Obtain the Load Address of a section by Name.
   ///
 
   /// Obtain the Load Address of a section by Name.
   ///
index ac0151aa7ec1ee506312df304616bf0545958685..1d75346fee3fa5329f6189e0d0932c50c974d250 100644 (file)
@@ -62,8 +62,6 @@ public:
                      unsigned EndIdx)
       : RTDyld(RTDyld), BeginIdx(BeginIdx), EndIdx(EndIdx) { }
 
                      unsigned EndIdx)
       : RTDyld(RTDyld), BeginIdx(BeginIdx), EndIdx(EndIdx) { }
 
-    virtual ~LoadedObjectInfo() = default;
-
     virtual object::OwningBinary<object::ObjectFile>
     getObjectForDebug(const object::ObjectFile &Obj) const = 0;
 
     virtual object::OwningBinary<object::ObjectFile>
     getObjectForDebug(const object::ObjectFile &Obj) const = 0;