Changeset 157558 in webkit for trunk/Source/JavaScriptCore/llvm/InitializeLLVM.cpp
- Timestamp:
- Oct 16, 2013, 8:47:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/llvm/InitializeLLVM.cpp
r157260 r157558 29 29 #if HAVE(LLVM) 30 30 31 #include "LLVMAPI.h" 31 32 #include <pthread.h> 32 33 … … 35 36 static pthread_once_t initializeLLVMOnceKey = PTHREAD_ONCE_INIT; 36 37 38 static NO_RETURN_DUE_TO_CRASH void llvmCrash(const char* reason) 39 { 40 WTFLogAlways("LLVM failure: %s", reason); 41 CRASH(); 42 } 43 44 static void initializeLLVMOnce() 45 { 46 initializeLLVMImpl(); 47 48 llvm->InstallFatalErrorHandler(llvmCrash); 49 } 50 37 51 void initializeLLVM() 38 52 { 39 pthread_once(&initializeLLVMOnceKey, initializeLLVM Impl);53 pthread_once(&initializeLLVMOnceKey, initializeLLVMOnce); 40 54 } 41 55
Note:
See TracChangeset
for help on using the changeset viewer.