gallivm: Fix build for LLVM < 3.3

The C API versions of the LLVM multithreaded functions were added in
LLVM 3.3.
This commit is contained in:
Tom Stellard 2013-05-06 09:58:56 -07:00
parent bb94d4d8fe
commit 730c90a70e

View file

@ -85,9 +85,15 @@ class LLVMEnsureMultithreaded {
public:
LLVMEnsureMultithreaded()
{
#if HAVE_LLVM < 0x0303
if (!llvm::llvm_is_multithreaded()) {
llvm::llvm_start_multithreaded();
}
#else
if (!LLVMIsMultithreaded()) {
LLVMStartMultithreaded();
}
#endif
}
};