Skip to content

Commit

Permalink
[ORC] Don't require PageSize or Triple during TargetProcessControl co…
Browse files Browse the repository at this point in the history
…nstruction

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.
  • Loading branch information
lhames committed Jul 25, 2020
1 parent 07f227c commit 11d5316
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Expand Up @@ -152,7 +152,6 @@ class TargetProcessControl {
virtual Expected<LookupResult> lookupSymbols(LookupRequest Request) = 0;

protected:
TargetProcessControl(Triple TT, unsigned PageSize);

Triple TT;
unsigned PageSize = 0;
Expand Down
9 changes: 4 additions & 5 deletions llvm/lib/ExecutionEngine/Orc/TargetProcessControl.cpp
Expand Up @@ -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())
Expand Down

0 comments on commit 11d5316

Please sign in to comment.