Merge pull request #975 from jbrodman/windll

Change dll export feature to a switch.
This commit is contained in:
Dmitry Babokin
2015-03-06 23:56:45 +03:00
4 changed files with 8 additions and 1 deletions

View File

@@ -920,7 +920,7 @@ Module::AddFunctionDeclaration(const std::string &name,
#ifdef ISPC_IS_WINDOWS
// Make export functions callable from DLLS.
if (functionType->isExported) {
if ((g->dllExport) && (storageClass != SC_STATIC)) {
function->setDLLStorageClass(llvm::GlobalValue::DLLExportStorageClass);
}
#endif