mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Reapply part of r237975, "Fix Clang -Wmissing-override warning", except for DIContext.h, to apease g++-4.7.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -24,18 +24,17 @@ using namespace llvm::object;
|
||||
|
||||
namespace {
|
||||
|
||||
class LoadedCOFFObjectInfo : public RuntimeDyld::LoadedObjectInfo {
|
||||
class LoadedCOFFObjectInfo
|
||||
: public RuntimeDyld::LoadedObjectInfoHelper<LoadedCOFFObjectInfo> {
|
||||
public:
|
||||
LoadedCOFFObjectInfo(RuntimeDyldImpl &RTDyld, unsigned BeginIdx,
|
||||
unsigned EndIdx)
|
||||
: RuntimeDyld::LoadedObjectInfo(RTDyld, BeginIdx, EndIdx) {}
|
||||
: LoadedObjectInfoHelper(RTDyld, BeginIdx, EndIdx) {}
|
||||
|
||||
OwningBinary<ObjectFile>
|
||||
getObjectForDebug(const ObjectFile &Obj) const override {
|
||||
return OwningBinary<ObjectFile>();
|
||||
}
|
||||
|
||||
RuntimeDyld::LoadedObjectInfo *clone() const { return new LoadedCOFFObjectInfo(*this); }
|
||||
};
|
||||
}
|
||||
|
||||
|
@@ -104,16 +104,15 @@ void DyldELFObject<ELFT>::updateSymbolAddress(const SymbolRef &SymRef,
|
||||
sym->st_value = static_cast<addr_type>(Addr);
|
||||
}
|
||||
|
||||
class LoadedELFObjectInfo : public RuntimeDyld::LoadedObjectInfo {
|
||||
class LoadedELFObjectInfo
|
||||
: public RuntimeDyld::LoadedObjectInfoHelper<LoadedELFObjectInfo> {
|
||||
public:
|
||||
LoadedELFObjectInfo(RuntimeDyldImpl &RTDyld, unsigned BeginIdx,
|
||||
unsigned EndIdx)
|
||||
: RuntimeDyld::LoadedObjectInfo(RTDyld, BeginIdx, EndIdx) {}
|
||||
: LoadedObjectInfoHelper(RTDyld, BeginIdx, EndIdx) {}
|
||||
|
||||
OwningBinary<ObjectFile>
|
||||
getObjectForDebug(const ObjectFile &Obj) const override;
|
||||
|
||||
RuntimeDyld::LoadedObjectInfo *clone() const { return new LoadedELFObjectInfo(*this); }
|
||||
};
|
||||
|
||||
template <typename ELFT>
|
||||
|
@@ -26,18 +26,17 @@ using namespace llvm::object;
|
||||
|
||||
namespace {
|
||||
|
||||
class LoadedMachOObjectInfo : public RuntimeDyld::LoadedObjectInfo {
|
||||
class LoadedMachOObjectInfo
|
||||
: public RuntimeDyld::LoadedObjectInfoHelper<LoadedMachOObjectInfo> {
|
||||
public:
|
||||
LoadedMachOObjectInfo(RuntimeDyldImpl &RTDyld, unsigned BeginIdx,
|
||||
unsigned EndIdx)
|
||||
: RuntimeDyld::LoadedObjectInfo(RTDyld, BeginIdx, EndIdx) {}
|
||||
: LoadedObjectInfoHelper(RTDyld, BeginIdx, EndIdx) {}
|
||||
|
||||
OwningBinary<ObjectFile>
|
||||
getObjectForDebug(const ObjectFile &Obj) const override {
|
||||
return OwningBinary<ObjectFile>();
|
||||
}
|
||||
|
||||
RuntimeDyld::LoadedObjectInfo *clone() const { return new LoadedMachOObjectInfo(*this); }
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user