aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86ISelLowering.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2006-09-17 13:06:18 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2006-09-17 13:06:18 +0000
commit93c2b373409661798b7e191427a33791616a8ef6 (patch)
treece692f147bc0e57484b55d0fbcad74df353bf821 /lib/Target/X86/X86ISelLowering.cpp
parent7ed96abc09afbcb8a2ce1116c029908326cb412a (diff)
downloadexternal_llvm-93c2b373409661798b7e191427a33791616a8ef6.zip
external_llvm-93c2b373409661798b7e191427a33791616a8ef6.tar.gz
external_llvm-93c2b373409661798b7e191427a33791616a8ef6.tar.bz2
Small fixes for supporting dll* linkage types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index 166345c..c86d171 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -1964,13 +1964,13 @@ static bool DarwinGVRequiresExtraLoad(GlobalValue *GV) {
(GV->isExternal() && !GV->hasNotBeenReadFromBytecode()));
}
-/// WinndowsGVRequiresExtraLoad - true if accessing the GV requires an extra
+/// WindowsGVRequiresExtraLoad - true if accessing the GV requires an extra
/// load. For Windows, dllimported variables (not functions!) are indirect,
/// loading the value at address GV rather then the value of GV itself. This
/// means that the GlobalAddress must be in the base or index register of the
/// address, not the GV offset field.
static bool WindowsGVRequiresExtraLoad(GlobalValue *GV) {
- return (isa<GlobalVariable>((Value*)GV) && GV->hasDLLImportLinkage());
+ return (GV->hasDLLImportLinkage());
}
/// isUndefOrInRange - Op is either an undef node or a ConstantSDNode. Return