mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 18:06:49 +00:00
[Orc] Rename IndirectStubsManagerBase to IndirectStubsManager.
No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254885 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
001f341707
commit
1ecc6c0df2
@ -39,7 +39,7 @@ namespace orc {
|
||||
/// compiled and executed.
|
||||
template <typename BaseLayerT,
|
||||
typename CompileCallbackMgrT = JITCompileCallbackManager,
|
||||
typename IndirectStubsMgrT = IndirectStubsManagerBase>
|
||||
typename IndirectStubsMgrT = IndirectStubsManager>
|
||||
class CompileOnDemandLayer {
|
||||
private:
|
||||
|
||||
|
@ -211,13 +211,13 @@ private:
|
||||
};
|
||||
|
||||
/// @brief Base class for managing collections of named indirect stubs.
|
||||
class IndirectStubsManagerBase {
|
||||
class IndirectStubsManager {
|
||||
public:
|
||||
|
||||
/// @brief Map type for initializing the manager. See init.
|
||||
typedef StringMap<std::pair<TargetAddress, JITSymbolFlags>> StubInitsMap;
|
||||
|
||||
virtual ~IndirectStubsManagerBase() {}
|
||||
virtual ~IndirectStubsManager() {}
|
||||
|
||||
/// @brief Create a single stub with the given name, target address and flags.
|
||||
virtual std::error_code createStub(StringRef StubName, TargetAddress StubAddr,
|
||||
@ -244,7 +244,7 @@ private:
|
||||
/// @brief IndirectStubsManager implementation for a concrete target, e.g.
|
||||
/// OrcX86_64. (See OrcTargetSupport.h).
|
||||
template <typename TargetT>
|
||||
class IndirectStubsManager : public IndirectStubsManagerBase {
|
||||
class LocalIndirectStubsManager : public IndirectStubsManager {
|
||||
public:
|
||||
|
||||
std::error_code createStub(StringRef StubName, TargetAddress StubAddr,
|
||||
|
@ -20,7 +20,7 @@ namespace llvm {
|
||||
namespace orc {
|
||||
|
||||
void JITCompileCallbackManager::anchor() {}
|
||||
void IndirectStubsManagerBase::anchor() {}
|
||||
void IndirectStubsManager::anchor() {}
|
||||
|
||||
Constant* createIRTypedAddress(FunctionType &FT, TargetAddress Addr) {
|
||||
Constant *AddrIntVal =
|
||||
|
@ -36,7 +36,8 @@ OrcCBindingsStack::createIndirectStubsMgrBuilder(Triple T) {
|
||||
|
||||
case Triple::x86_64:
|
||||
return [](){
|
||||
return llvm::make_unique<orc::IndirectStubsManager<orc::OrcX86_64>>();
|
||||
return llvm::make_unique<
|
||||
orc::LocalIndirectStubsManager<orc::OrcX86_64>>();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -268,7 +268,7 @@ private:
|
||||
CompileLayerT CompileLayer;
|
||||
CODLayerT CODLayer;
|
||||
|
||||
std::unique_ptr<orc::IndirectStubsManagerBase> IndirectStubsMgr;
|
||||
std::unique_ptr<orc::IndirectStubsManager> IndirectStubsMgr;
|
||||
|
||||
std::vector<std::unique_ptr<GenericHandle>> GenericHandles;
|
||||
std::vector<unsigned> FreeHandleIndexes;
|
||||
|
@ -65,7 +65,8 @@ OrcLazyJIT::createIndirectStubsMgrBuilder(Triple T) {
|
||||
|
||||
case Triple::x86_64:
|
||||
return [](){
|
||||
return llvm::make_unique<orc::IndirectStubsManager<orc::OrcX86_64>>();
|
||||
return llvm::make_unique<
|
||||
orc::LocalIndirectStubsManager<orc::OrcX86_64>>();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ public:
|
||||
void grow() override { llvm_unreachable("not implemented"); }
|
||||
};
|
||||
|
||||
class DummyStubsManager : public orc::IndirectStubsManagerBase {
|
||||
class DummyStubsManager : public orc::IndirectStubsManager {
|
||||
public:
|
||||
std::error_code createStub(StringRef StubName, TargetAddress InitAddr,
|
||||
JITSymbolFlags Flags) override {
|
||||
|
Loading…
Reference in New Issue
Block a user