mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-06 18:17:04 +00:00
Make helper function static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162843 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -532,7 +532,7 @@ uintptr_t X86JITInfo::getPICJumpTableEntry(uintptr_t BB, uintptr_t Entry) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T> void addUnaligned(void *Pos, T Delta) {
|
template<typename T> static void addUnaligned(void *Pos, T Delta) {
|
||||||
T Value;
|
T Value;
|
||||||
std::memcpy(reinterpret_cast<char*>(&Value), reinterpret_cast<char*>(Pos),
|
std::memcpy(reinterpret_cast<char*>(&Value), reinterpret_cast<char*>(Pos),
|
||||||
sizeof(T));
|
sizeof(T));
|
||||||
|
Reference in New Issue
Block a user