mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Delete dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214370 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -151,7 +151,6 @@ protected:
|
|||||||
Module *M,
|
Module *M,
|
||||||
std::string *ErrorStr,
|
std::string *ErrorStr,
|
||||||
RTDyldMemoryManager *MCJMM,
|
RTDyldMemoryManager *MCJMM,
|
||||||
bool GVsWithCode,
|
|
||||||
TargetMachine *TM);
|
TargetMachine *TM);
|
||||||
static ExecutionEngine *(*InterpCtor)(Module *M, std::string *ErrorStr);
|
static ExecutionEngine *(*InterpCtor)(Module *M, std::string *ErrorStr);
|
||||||
|
|
||||||
|
@ -57,7 +57,6 @@ ExecutionEngine *(*ExecutionEngine::MCJITCtor)(
|
|||||||
Module *M,
|
Module *M,
|
||||||
std::string *ErrorStr,
|
std::string *ErrorStr,
|
||||||
RTDyldMemoryManager *MCJMM,
|
RTDyldMemoryManager *MCJMM,
|
||||||
bool GVsWithCode,
|
|
||||||
TargetMachine *TM) = nullptr;
|
TargetMachine *TM) = nullptr;
|
||||||
ExecutionEngine *(*ExecutionEngine::InterpCtor)(Module *M,
|
ExecutionEngine *(*ExecutionEngine::InterpCtor)(Module *M,
|
||||||
std::string *ErrorStr) =nullptr;
|
std::string *ErrorStr) =nullptr;
|
||||||
@ -471,7 +470,7 @@ ExecutionEngine *EngineBuilder::create(TargetMachine *TM) {
|
|||||||
ExecutionEngine *EE = nullptr;
|
ExecutionEngine *EE = nullptr;
|
||||||
if (UseMCJIT && ExecutionEngine::MCJITCtor)
|
if (UseMCJIT && ExecutionEngine::MCJITCtor)
|
||||||
EE = ExecutionEngine::MCJITCtor(M, ErrorStr, MCJMM ? MCJMM : JMM,
|
EE = ExecutionEngine::MCJITCtor(M, ErrorStr, MCJMM ? MCJMM : JMM,
|
||||||
AllocateGVsWithCode, TheTM.release());
|
TheTM.release());
|
||||||
else if (ExecutionEngine::JITCtor)
|
else if (ExecutionEngine::JITCtor)
|
||||||
EE = ExecutionEngine::JITCtor(M, ErrorStr, JMM,
|
EE = ExecutionEngine::JITCtor(M, ErrorStr, JMM,
|
||||||
AllocateGVsWithCode, TheTM.release());
|
AllocateGVsWithCode, TheTM.release());
|
||||||
|
@ -45,19 +45,16 @@ extern "C" void LLVMLinkInMCJIT() {
|
|||||||
ExecutionEngine *MCJIT::createJIT(Module *M,
|
ExecutionEngine *MCJIT::createJIT(Module *M,
|
||||||
std::string *ErrorStr,
|
std::string *ErrorStr,
|
||||||
RTDyldMemoryManager *MemMgr,
|
RTDyldMemoryManager *MemMgr,
|
||||||
bool GVsWithCode,
|
|
||||||
TargetMachine *TM) {
|
TargetMachine *TM) {
|
||||||
// Try to register the program as a source of symbols to resolve against.
|
// Try to register the program as a source of symbols to resolve against.
|
||||||
//
|
//
|
||||||
// FIXME: Don't do this here.
|
// FIXME: Don't do this here.
|
||||||
sys::DynamicLibrary::LoadLibraryPermanently(nullptr, nullptr);
|
sys::DynamicLibrary::LoadLibraryPermanently(nullptr, nullptr);
|
||||||
|
|
||||||
return new MCJIT(M, TM, MemMgr ? MemMgr : new SectionMemoryManager(),
|
return new MCJIT(M, TM, MemMgr ? MemMgr : new SectionMemoryManager());
|
||||||
GVsWithCode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MCJIT::MCJIT(Module *m, TargetMachine *tm, RTDyldMemoryManager *MM,
|
MCJIT::MCJIT(Module *m, TargetMachine *tm, RTDyldMemoryManager *MM)
|
||||||
bool AllocateGVsWithCode)
|
|
||||||
: ExecutionEngine(m), TM(tm), Ctx(nullptr), MemMgr(this, MM), Dyld(&MemMgr),
|
: ExecutionEngine(m), TM(tm), Ctx(nullptr), MemMgr(this, MM), Dyld(&MemMgr),
|
||||||
ObjCache(nullptr) {
|
ObjCache(nullptr) {
|
||||||
|
|
||||||
|
@ -101,8 +101,7 @@ private:
|
|||||||
// called.
|
// called.
|
||||||
|
|
||||||
class MCJIT : public ExecutionEngine {
|
class MCJIT : public ExecutionEngine {
|
||||||
MCJIT(Module *M, TargetMachine *tm, RTDyldMemoryManager *MemMgr,
|
MCJIT(Module *M, TargetMachine *tm, RTDyldMemoryManager *MemMgr);
|
||||||
bool AllocateGVsWithCode);
|
|
||||||
|
|
||||||
typedef llvm::SmallPtrSet<Module *, 4> ModulePtrSet;
|
typedef llvm::SmallPtrSet<Module *, 4> ModulePtrSet;
|
||||||
|
|
||||||
@ -328,7 +327,6 @@ public:
|
|||||||
static ExecutionEngine *createJIT(Module *M,
|
static ExecutionEngine *createJIT(Module *M,
|
||||||
std::string *ErrorStr,
|
std::string *ErrorStr,
|
||||||
RTDyldMemoryManager *MemMgr,
|
RTDyldMemoryManager *MemMgr,
|
||||||
bool GVsWithCode,
|
|
||||||
TargetMachine *TM);
|
TargetMachine *TM);
|
||||||
|
|
||||||
// @}
|
// @}
|
||||||
|
Reference in New Issue
Block a user