Changes in directory llvm/lib/Target/X86:
X86ISelLowering.cpp updated: 1.259 -> 1.260 --- Log message: Small fixes for supporting dll* linkage types --- Diffs of the changes: (+2 -2) X86ISelLowering.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Target/X86/X86ISelLowering.cpp diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.259 llvm/lib/Target/X86/X86ISelLowering.cpp:1.260 --- llvm/lib/Target/X86/X86ISelLowering.cpp:1.259 Thu Sep 14 13:23:27 2006 +++ llvm/lib/Target/X86/X86ISelLowering.cpp Sun Sep 17 08:06:18 2006 @@ -1964,13 +1964,13 @@ (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 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits