mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-17 18:24:34 +00:00
Remove non-portable optimization that isn't worth it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29115 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -309,11 +309,7 @@ void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) {
|
|||||||
// space.
|
// space.
|
||||||
Ptr = malloc(S+A);
|
Ptr = malloc(S+A);
|
||||||
unsigned MisAligned = ((intptr_t)Ptr & (A-1));
|
unsigned MisAligned = ((intptr_t)Ptr & (A-1));
|
||||||
unsigned Offset = MisAligned ? (A-MisAligned) : 0;
|
Ptr = (char*)Ptr + (MisAligned ? (A-MisAligned) : 0);
|
||||||
|
|
||||||
// Trim the tail off the memory block.
|
|
||||||
realloc(Ptr, S+Offset);
|
|
||||||
Ptr = (char*)Ptr + Offset;
|
|
||||||
}
|
}
|
||||||
state.getPendingGlobals(locked).push_back(GV);
|
state.getPendingGlobals(locked).push_back(GV);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user