aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2006-09-14 18:23:27 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2006-09-14 18:23:27 +0000
commitb74ed07bfd3af42331b1964c24c39912610a08f4 (patch)
tree23784905a2ba3e6ebe644e62b54658950cbf8fa1 /lib/ExecutionEngine/ExecutionEngine.cpp
parenta17cf0a7e2d9aa6d9bb6f9461a6fa8a9ac02bab4 (diff)
downloadexternal_llvm-b74ed07bfd3af42331b1964c24c39912610a08f4.zip
external_llvm-b74ed07bfd3af42331b1964c24c39912610a08f4.tar.gz
external_llvm-b74ed07bfd3af42331b1964c24c39912610a08f4.tar.bz2
Adding dllimport, dllexport and external weak linkage types.
DLL* linkages got full (I hope) codegeneration support in C & both x86 assembler backends. External weak linkage added for future use, we don't provide any codegeneration, etc. support for it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index 9ad6b57..067f24d 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -657,7 +657,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