Decouple dllexport/dllimport from linkage
[oota-llvm.git] / lib / Target / X86 / X86ISelLowering.cpp
index 9fa7f7461fc4f9882d595f813d0d0b9b98adbe6d..677cdbdee8f1164a1c690c3dc5198ad11bb0a628 100644 (file)
@@ -2796,7 +2796,7 @@ X86TargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
     // We should use extra load for direct calls to dllimported functions in
     // non-JIT mode.
     const GlobalValue *GV = G->getGlobal();
-    if (!GV->hasDLLImportLinkage()) {
+    if (!GV->hasDLLImportStorageClass()) {
       unsigned char OpFlags = 0;
       bool ExtraLoad = false;
       unsigned WrapperKind = ISD::DELETED_NODE;