Changeset 182483 in webkit for trunk/Source/JavaScriptCore/llvm/InitializeLLVMWin.cpp
- Timestamp:
- Apr 7, 2015, 12:41:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/llvm/InitializeLLVMWin.cpp
r170130 r182483 1 1 /* 2 * Copyright (C) 2014 Apple Inc. All rights reserved.2 * Copyright (C) 2014, 2015 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 34 34 namespace JSC { 35 35 36 typedef LLVMAPI* (*InitializerFunction)(void(*)(const char*, ...)); 37 38 void initializeLLVMImpl() 36 LLVMInitializerFunction getLLVMInitializerFunction(bool /* verbose */) 39 37 { 40 38 const wchar_t* libraryName = L"libllvmForJSC.dll"; … … 43 41 44 42 if (!library) 45 return ;43 return nullptr; 46 44 47 45 const char* symbolName = "initializeAndGetJSCLLVMAPI"; 48 InitializerFunction initializer = bitwise_cast<InitializerFunction>(GetProcAddress(library, symbolName)); 49 if (initializer) 50 llvm = initializer(WTFLogAlwaysAndCrash); 46 return bitwise_cast<LLVMInitializerFunction>(GetProcAddress(library, symbolName)); 51 47 } 52 48
Note:
See TracChangeset
for help on using the changeset viewer.