1
0
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:
Lang Hames 2020-07-24 21:17:37 -07:00
parent dfcbe0aef2
commit 8dd38c568c
2 changed files with 4 additions and 6 deletions

View File

@ -152,7 +152,6 @@ public:
virtual Expected<LookupResult> lookupSymbols(LookupRequest Request) = 0;
protected:
TargetProcessControl(Triple TT, unsigned PageSize);
Triple TT;
unsigned PageSize = 0;

View File

@ -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())