OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e0d1c0
)
Make helper function static.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Wed, 29 Aug 2012 16:17:01 +0000
(16:17 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Wed, 29 Aug 2012 16:17:01 +0000
(16:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162843
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86JITInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86JITInfo.cpp
b/lib/Target/X86/X86JITInfo.cpp
index
7ac4cec
..
764aa5d
100644
(file)
--- a/
lib/Target/X86/X86JITInfo.cpp
+++ b/
lib/Target/X86/X86JITInfo.cpp
@@
-532,7
+532,7
@@
uintptr_t X86JITInfo::getPICJumpTableEntry(uintptr_t BB, uintptr_t Entry) {
#endif
}
-template<typename T> void addUnaligned(void *Pos, T Delta) {
+template<typename T>
static
void addUnaligned(void *Pos, T Delta) {
T Value;
std::memcpy(reinterpret_cast<char*>(&Value), reinterpret_cast<char*>(Pos),
sizeof(T));