mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
[Orc] Remove a bunch of constructors from ObjectLinkingLayer.
These constructors were causing trouble for MSVC and older GCCs. This should fix more of the build failures from r226940. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226946 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
511a3c71fc
commit
0ace78e7d4
@ -94,59 +94,24 @@ public:
|
|||||||
template <typename NotifyLoadedFtor = DoNothingOnNotifyLoaded>
|
template <typename NotifyLoadedFtor = DoNothingOnNotifyLoaded>
|
||||||
class ObjectLinkingLayer : public ObjectLinkingLayerBase {
|
class ObjectLinkingLayer : public ObjectLinkingLayerBase {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/// @brief LoadedObjectInfo list. Contains a list of owning pointers to
|
/// @brief LoadedObjectInfo list. Contains a list of owning pointers to
|
||||||
/// RuntimeDyld::LoadedObjectInfo instances.
|
/// RuntimeDyld::LoadedObjectInfo instances.
|
||||||
typedef std::vector<std::unique_ptr<RuntimeDyld::LoadedObjectInfo>>
|
typedef std::vector<std::unique_ptr<RuntimeDyld::LoadedObjectInfo>>
|
||||||
LoadedObjInfoList;
|
LoadedObjInfoList;
|
||||||
|
|
||||||
/// @brief Default construct an ObjectLinkingLayer.
|
/// @brief Functor to create RTDyldMemoryManager instances.
|
||||||
ObjectLinkingLayer() {}
|
typedef std::function<std::unique_ptr<RTDyldMemoryManager>()> CreateRTDyldMMFtor;
|
||||||
|
|
||||||
/// @brief Construct an ObjectLinkingLayer with the given NotifyLoaded
|
/// @brief Functor for receiving finalization notifications.
|
||||||
/// functor.
|
typedef std::function<void(ObjSetHandleT)> NotifyFinalizedFtor;
|
||||||
ObjectLinkingLayer(NotifyLoadedFtor NotifyLoaded)
|
|
||||||
: NotifyLoaded(std::move(NotifyLoaded)) {}
|
|
||||||
|
|
||||||
/// @brief Construct an ObjectLinkingLayer with the given NotifyFinalized
|
|
||||||
/// functor.
|
|
||||||
ObjectLinkingLayer(std::function<void(ObjSetHandleT)> NotifyFinalized)
|
|
||||||
: NotifyFinalized(std::move(NotifyFinalized)) {}
|
|
||||||
|
|
||||||
/// @brief Construct an ObjectLinkingLayer with the given CreateMemoryManager
|
|
||||||
/// functor.
|
|
||||||
ObjectLinkingLayer(
|
|
||||||
std::function<std::unique_ptr<RTDyldMemoryManager>()> CreateMemoryManager)
|
|
||||||
: CreateMemoryManager(std::move(CreateMemoryManager)) {}
|
|
||||||
|
|
||||||
/// @brief Construct an ObjectLinkingLayer with the given NotifyLoaded and
|
|
||||||
/// NotifyFinalized functors.
|
|
||||||
ObjectLinkingLayer(NotifyLoadedFtor NotifyLoaded,
|
|
||||||
std::function<void(ObjSetHandleT)> NotifyFinalized)
|
|
||||||
: NotifyLoaded(std::move(NotifyLoaded)),
|
|
||||||
NotifyFinalized(std::move(NotifyFinalized)) {}
|
|
||||||
|
|
||||||
/// @brief Construct an ObjectLinkingLayer with the given NotifyLoaded and
|
|
||||||
/// CreateMemoryManager functors.
|
|
||||||
ObjectLinkingLayer(
|
|
||||||
NotifyLoadedFtor NotifyLoaded,
|
|
||||||
std::function<std::unique_ptr<RTDyldMemoryManager>()> CreateMemoryManager)
|
|
||||||
: NotifyLoaded(std::move(NotifyLoaded)),
|
|
||||||
CreateMemoryManager(std::move(CreateMemoryManager)) {}
|
|
||||||
|
|
||||||
/// @brief Construct an ObjectLinkingLayer with the given NotifyFinalized and
|
|
||||||
/// CreateMemoryManager functors.
|
|
||||||
ObjectLinkingLayer(
|
|
||||||
std::function<void(ObjSetHandleT)> NotifyFinalized,
|
|
||||||
std::function<std::unique_ptr<RTDyldMemoryManager>()> CreateMemoryManager)
|
|
||||||
: NotifyFinalized(std::move(NotifyFinalized)),
|
|
||||||
CreateMemoryManager(std::move(CreateMemoryManager)) {}
|
|
||||||
|
|
||||||
/// @brief Construct an ObjectLinkingLayer with the given NotifyLoaded,
|
/// @brief Construct an ObjectLinkingLayer with the given NotifyLoaded,
|
||||||
/// NotifyFinalized and CreateMemoryManager functors.
|
/// NotifyFinalized and CreateMemoryManager functors.
|
||||||
ObjectLinkingLayer(
|
ObjectLinkingLayer(
|
||||||
|
CreateRTDyldMMFtor CreateMemoryManager,
|
||||||
NotifyLoadedFtor NotifyLoaded,
|
NotifyLoadedFtor NotifyLoaded,
|
||||||
std::function<void(ObjSetHandleT)> NotifyFinalized,
|
NotifyFinalizedFtor NotifyFinalized)
|
||||||
std::function<std::unique_ptr<RTDyldMemoryManager>()> CreateMemoryManager)
|
|
||||||
: NotifyLoaded(std::move(NotifyLoaded)),
|
: NotifyLoaded(std::move(NotifyLoaded)),
|
||||||
NotifyFinalized(std::move(NotifyFinalized)),
|
NotifyFinalized(std::move(NotifyFinalized)),
|
||||||
CreateMemoryManager(std::move(CreateMemoryManager)) {}
|
CreateMemoryManager(std::move(CreateMemoryManager)) {}
|
||||||
@ -245,8 +210,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
LinkedObjectSetListT LinkedObjSetList;
|
LinkedObjectSetListT LinkedObjSetList;
|
||||||
NotifyLoadedFtor NotifyLoaded;
|
NotifyLoadedFtor NotifyLoaded;
|
||||||
std::function<void(ObjSetHandleT)> NotifyFinalized;
|
NotifyFinalizedFtor NotifyFinalized;
|
||||||
std::function<std::unique_ptr<RTDyldMemoryManager>()> CreateMemoryManager;
|
CreateRTDyldMMFtor CreateMemoryManager;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace llvm
|
} // end namespace llvm
|
||||||
|
@ -122,7 +122,8 @@ public:
|
|||||||
: TM(std::move(TM)), MM(std::move(MM)),
|
: TM(std::move(TM)), MM(std::move(MM)),
|
||||||
Mang(this->TM->getSubtargetImpl()->getDataLayout()),
|
Mang(this->TM->getSubtargetImpl()->getDataLayout()),
|
||||||
NotifyObjectLoaded(*this), NotifyFinalized(*this),
|
NotifyObjectLoaded(*this), NotifyFinalized(*this),
|
||||||
ObjectLayer(NotifyObjectLoaded, NotifyFinalized),
|
ObjectLayer(ObjectLayerT::CreateRTDyldMMFtor(), NotifyObjectLoaded,
|
||||||
|
NotifyFinalized),
|
||||||
CompileLayer(ObjectLayer, SimpleCompiler(*this->TM)),
|
CompileLayer(ObjectLayer, SimpleCompiler(*this->TM)),
|
||||||
LazyEmitLayer(CompileLayer) {
|
LazyEmitLayer(CompileLayer) {
|
||||||
setDataLayout(this->TM->getSubtargetImpl()->getDataLayout());
|
setDataLayout(this->TM->getSubtargetImpl()->getDataLayout());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user