llvmpipe: Fix build with llvm 2.6.

Fixes bug 24949.
This commit is contained in:
José Fonseca 2009-11-06 15:08:05 +00:00
parent 38d3c156dc
commit 96e938f62c
2 changed files with 10 additions and 5 deletions

View File

@ -26,8 +26,6 @@
**************************************************************************/
#include "llvm/Config/config.h"
#include "pipe/p_config.h"
#include "lp_bld_misc.h"
@ -50,12 +48,13 @@ LLVMLinkInJIT(void)
extern "C" int X86TargetMachineModule;
void
int
LLVMInitializeNativeTarget(void)
{
#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
X86TargetMachineModule = 1;
X86TargetMachineModule = 1;
#endif
return 0;
}

View File

@ -30,17 +30,23 @@
#define LP_BLD_MISC_H
#include "llvm/Config/config.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef LLVM_NATIVE_ARCH
void
LLVMLinkInJIT(void);
void
int
LLVMInitializeNativeTarget(void);
#endif /* !LLVM_NATIVE_ARCH */
#ifdef __cplusplus
}