diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-05-03 01:03:20 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-05-03 01:03:20 +0000 |
| commit | 37c39b9c62c523ea324d635e1760f91754b0a371 (patch) | |
| tree | 6daefc9e36cc6915a889105aa70a79b55b530984 /llvm/lib | |
| parent | 7150a7038a3bfc0690463777357226193295b45c (diff) | |
| download | bcm5719-llvm-37c39b9c62c523ea324d635e1760f91754b0a371.tar.gz bcm5719-llvm-37c39b9c62c523ea324d635e1760f91754b0a371.zip | |
Align function bodies correctly.
llvm-svn: 28073
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp index 6e4ace9bf4d..bdc5f791e09 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -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); } |

