Change dll export feature to a switch.

This commit is contained in:
jbrodman
2015-02-23 11:43:06 -08:00
parent 122142e439
commit 9baade2cb5
4 changed files with 8 additions and 1 deletions

View File

@@ -916,7 +916,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