Revert "Decouple dllexport/dllimport from linkage"

Revert this for now until I fix an issue in Clang with it.

This reverts commit r199204.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199207 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nico Rieck
2014-01-14 12:38:32 +00:00
parent 62b811443d
commit 55463f4ec1
27 changed files with 157 additions and 547 deletions

View File

@ -1211,7 +1211,9 @@ void ExecutionEngine::emitGlobals() {
}
// If the existing global is strong, never replace it.
if (GVEntry->hasExternalLinkage())
if (GVEntry->hasExternalLinkage() ||
GVEntry->hasDLLImportLinkage() ||
GVEntry->hasDLLExportLinkage())
continue;
// Otherwise, we know it's linkonce/weak, replace it if this is a strong