diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2006-09-17 13:06:18 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2006-09-17 13:06:18 +0000 |
| commit | 0ab01ff6e21be817772f18b0605a52aefa425b89 (patch) | |
| tree | 253fe63489561f8a8746a66333c900faa5b855b7 /llvm/lib/Target | |
| parent | f7e3478745c3f66d769fd53ab6443479f22ac479 (diff) | |
| download | bcm5719-llvm-0ab01ff6e21be817772f18b0605a52aefa425b89.tar.gz bcm5719-llvm-0ab01ff6e21be817772f18b0605a52aefa425b89.zip | |
Small fixes for supporting dll* linkage types
llvm-svn: 30441
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 166345c2b21..c86d1711979 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/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 |

