forked from OSchip/llvm-project
Fix missing include of int_lib.h and ppc ifdef for FreeBSD.
Patch provided by Ed Schouten! llvm-svn: 147458
This commit is contained in:
parent
9d4d20af55
commit
bf9a62dcad
|
|
@ -8,6 +8,8 @@
|
|||
* ===----------------------------------------------------------------------===
|
||||
*/
|
||||
|
||||
#include "int_lib.h"
|
||||
|
||||
#if __APPLE__
|
||||
#include <libkern/OSCacheControl.h>
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ extern void __clear_cache(void* start, void* end);
|
|||
* and then jumps to the target nested function.
|
||||
*/
|
||||
|
||||
#if __ppc__
|
||||
#if __ppc__ && !defined(__powerpc64__)
|
||||
void __trampoline_setup(uint32_t* trampOnStack, int trampSizeAllocated,
|
||||
const void* realFunc, void* localsPtr)
|
||||
{
|
||||
|
|
@ -44,4 +44,4 @@ void __trampoline_setup(uint32_t* trampOnStack, int trampSizeAllocated,
|
|||
/* clear instruction cache */
|
||||
__clear_cache(trampOnStack, &trampOnStack[10]);
|
||||
}
|
||||
#endif /* __ppc__ */
|
||||
#endif /* __ppc__ && !defined(__powerpc64__) */
|
||||
|
|
|
|||
Loading…
Reference in New Issue