mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[ORC] Don't require PageSize or Triple during TargetProcessControl construction
Subclasses will commonly gather that information from a remote during construction, in which case they won't have meaningful values to pass to TargetProcessControl's constructor.
This commit is contained in:
parent
dfcbe0aef2
commit
8dd38c568c
@ -152,7 +152,6 @@ public:
|
||||
virtual Expected<LookupResult> lookupSymbols(LookupRequest Request) = 0;
|
||||
|
||||
protected:
|
||||
TargetProcessControl(Triple TT, unsigned PageSize);
|
||||
|
||||
Triple TT;
|
||||
unsigned PageSize = 0;
|
||||
|
@ -19,13 +19,12 @@ namespace orc {
|
||||
|
||||
TargetProcessControl::MemoryAccess::~MemoryAccess() {}
|
||||
|
||||
TargetProcessControl::TargetProcessControl(Triple TT, unsigned PageSize)
|
||||
: TT(std::move(TT)), PageSize(PageSize) {}
|
||||
|
||||
TargetProcessControl::~TargetProcessControl() {}
|
||||
|
||||
SelfTargetProcessControl::SelfTargetProcessControl(Triple TT, unsigned PageSize)
|
||||
: TargetProcessControl(std::move(TT), PageSize) {
|
||||
SelfTargetProcessControl::SelfTargetProcessControl(Triple TT,
|
||||
unsigned PageSize) {
|
||||
this->TT = std::move(TT);
|
||||
this->PageSize = PageSize;
|
||||
this->MemMgr = IPMM.get();
|
||||
this->MemAccess = this;
|
||||
if (this->TT.isOSBinFormatMachO())
|
||||
|
Loading…
Reference in New Issue
Block a user