[llvm-commits] [llvm] r162843 - /llvm/trunk/lib/Target/X86/X86JITInfo.cpp
Benjamin Kramer
benny.kra at googlemail.com
Wed Aug 29 09:17:02 PDT 2012
Author: d0k
Date: Wed Aug 29 11:17:01 2012
New Revision: 162843
URL: http://llvm.org/viewvc/llvm-project?rev=162843&view=rev
Log:
Make helper function static.
Modified:
llvm/trunk/lib/Target/X86/X86JITInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86JITInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86JITInfo.cpp?rev=162843&r1=162842&r2=162843&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86JITInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86JITInfo.cpp Wed Aug 29 11:17:01 2012
@@ -532,7 +532,7 @@
#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));
More information about the llvm-commits
mailing list