mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-13 03:21:07 +00:00
Minor cleanups, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d3f0aefc33
commit
a726c7f1fd
@ -72,9 +72,13 @@ namespace {
|
|||||||
unsigned Alignment);
|
unsigned Alignment);
|
||||||
inline unsigned char *startFunctionBody();
|
inline unsigned char *startFunctionBody();
|
||||||
inline void endFunctionBody(unsigned char *FunctionEnd);
|
inline void endFunctionBody(unsigned char *FunctionEnd);
|
||||||
inline unsigned char* getGOTBase() const;
|
|
||||||
|
|
||||||
inline bool isManagingGOT() const;
|
unsigned char *getGOTBase() const {
|
||||||
|
return GOTBase;
|
||||||
|
}
|
||||||
|
bool isManagingGOT() const {
|
||||||
|
return GOTBase != NULL;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,14 +173,6 @@ void JITMemoryManager::endFunctionBody(unsigned char *FunctionEnd) {
|
|||||||
CurFunctionPtr = FunctionEnd;
|
CurFunctionPtr = FunctionEnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char* JITMemoryManager::getGOTBase() const {
|
|
||||||
return GOTBase;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool JITMemoryManager::isManagingGOT() const {
|
|
||||||
return GOTBase != NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
sys::MemoryBlock JITMemoryManager::getNewMemoryBlock(unsigned size) {
|
sys::MemoryBlock JITMemoryManager::getNewMemoryBlock(unsigned size) {
|
||||||
const sys::MemoryBlock* BOld = 0;
|
const sys::MemoryBlock* BOld = 0;
|
||||||
if (Blocks.size())
|
if (Blocks.size())
|
||||||
@ -439,9 +435,7 @@ namespace {
|
|||||||
public:
|
public:
|
||||||
JITEmitter(JIT &jit) : MemMgr(jit.getJITInfo().needsGOT()) {
|
JITEmitter(JIT &jit) : MemMgr(jit.getJITInfo().needsGOT()) {
|
||||||
TheJIT = &jit;
|
TheJIT = &jit;
|
||||||
DEBUG(std::cerr <<
|
DEBUG(if (MemMgr.isManagingGOT()) std::cerr << "JIT is managing a GOT\n");
|
||||||
(MemMgr.isManagingGOT() ? "JIT is managing GOT\n"
|
|
||||||
: "JIT is not managing GOT\n"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void startFunction(MachineFunction &F);
|
virtual void startFunction(MachineFunction &F);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user