[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:
Lang Hames 2015-12-06 19:44:45 +00:00
parent 001f341707
commit 1ecc6c0df2
7 changed files with 11 additions and 9 deletions

View File

@ -39,7 +39,7 @@ namespace orc {
/// compiled and executed.
template <typename BaseLayerT,
typename CompileCallbackMgrT = JITCompileCallbackManager,
typename IndirectStubsMgrT = IndirectStubsManagerBase>
typename IndirectStubsMgrT = IndirectStubsManager>
class CompileOnDemandLayer {
private:

View File

@ -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,

View File

@ -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 =

View File

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

View File

@ -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;

View File

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

View File

@ -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 {