[llvm] 11d5316 - [ORC] Don't require PageSize or Triple during TargetProcessControl construction
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 25 15:21:56 PDT 2020
Author: Lang Hames
Date: 2020-07-25T15:21:43-07:00
New Revision: 11d5316afd102871027c103a4b8bfe6c072d4368
URL: https://github.com/llvm/llvm-project/commit/11d5316afd102871027c103a4b8bfe6c072d4368
DIFF: https://github.com/llvm/llvm-project/commit/11d5316afd102871027c103a4b8bfe6c072d4368.diff
LOG: [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.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/TargetProcessControl.h
llvm/lib/ExecutionEngine/Orc/TargetProcessControl.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/TargetProcessControl.h b/llvm/include/llvm/ExecutionEngine/Orc/TargetProcessControl.h
index 37bfa5a45b6c..887ac94e4d5c 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/TargetProcessControl.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/TargetProcessControl.h
@@ -152,7 +152,6 @@ class TargetProcessControl {
virtual Expected<LookupResult> lookupSymbols(LookupRequest Request) = 0;
protected:
- TargetProcessControl(Triple TT, unsigned PageSize);
Triple TT;
unsigned PageSize = 0;
diff --git a/llvm/lib/ExecutionEngine/Orc/TargetProcessControl.cpp b/llvm/lib/ExecutionEngine/Orc/TargetProcessControl.cpp
index ab07d3ad90b1..3f9a938db339 100644
--- a/llvm/lib/ExecutionEngine/Orc/TargetProcessControl.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/TargetProcessControl.cpp
@@ -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())
More information about the llvm-commits
mailing list