mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
[MCJIT] Delete the JTIMemoryManager and associated APIs.
This patch removes the old JIT memory manager (which does not provide any useful functionality now that the old JIT is gone), and migrates the few remaining clients over to SectionMemoryManager. http://llvm.org/PR20848 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218316 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,14 +18,14 @@
|
||||
#include "RemoteTarget.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ExecutionEngine/JITMemoryManager.h"
|
||||
#include "llvm/ExecutionEngine/RTDyldMemoryManager.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/Memory.h"
|
||||
#include <utility>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class RemoteMemoryManager : public JITMemoryManager {
|
||||
class RemoteMemoryManager : public RTDyldMemoryManager {
|
||||
public:
|
||||
// Notice that this structure takes ownership of the memory allocated.
|
||||
struct Allocation {
|
||||
@ -93,22 +93,6 @@ public:
|
||||
|
||||
// This is a non-interface function used by lli
|
||||
void setRemoteTarget(RemoteTarget *T) { Target = T; }
|
||||
|
||||
// The following obsolete JITMemoryManager calls are stubbed out for
|
||||
// this model.
|
||||
void setMemoryWritable() override;
|
||||
void setMemoryExecutable() override;
|
||||
void setPoisonMemory(bool poison) override;
|
||||
void AllocateGOT() override;
|
||||
uint8_t *getGOTBase() const override;
|
||||
uint8_t *startFunctionBody(const Function *F, uintptr_t &ActualSize) override;
|
||||
uint8_t *allocateStub(const GlobalValue* F, unsigned StubSize,
|
||||
unsigned Alignment) override;
|
||||
void endFunctionBody(const Function *F, uint8_t *FunctionStart,
|
||||
uint8_t *FunctionEnd) override;
|
||||
uint8_t *allocateSpace(intptr_t Size, unsigned Alignment) override;
|
||||
uint8_t *allocateGlobal(uintptr_t Size, unsigned Alignment) override;
|
||||
void deallocateFunctionBody(void *Body) override;
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
Reference in New Issue
Block a user