mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Align function bodies correctly.
llvm-svn: 28073
This commit is contained in:
parent
1bfcd5b981
commit
be9958e6f7
@ -107,9 +107,7 @@ unsigned char *JITMemoryManager::allocateStub(unsigned StubSize) {
|
||||
}
|
||||
|
||||
unsigned char *JITMemoryManager::startFunctionBody() {
|
||||
// Round up to an even multiple of 8 bytes, this should eventually be target
|
||||
// specific.
|
||||
return (unsigned char*)(((intptr_t)CurFunctionPtr + 7) & ~7);
|
||||
return CurFunctionPtr;
|
||||
}
|
||||
|
||||
void JITMemoryManager::endFunctionBody(unsigned char *FunctionEnd) {
|
||||
@ -447,7 +445,7 @@ void JITEmitter::startFunction(MachineFunction &F) {
|
||||
initJumpTableInfo(F.getJumpTableInfo());
|
||||
|
||||
// About to start emitting the machine code for the function.
|
||||
// FIXME: align it?
|
||||
emitAlignment(std::max(F.getFunction()->getAlignment(), 8U));
|
||||
TheJIT->updateGlobalMapping(F.getFunction(), CurBufferPtr);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user