diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-10 05:48:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-10 05:48:03 +0000 |
commit | 180a7eec612122956e1e98559d9afd2bc6272944 (patch) | |
tree | b03982bb1ba5257cc1e88bfc10793bea26582452 /lib/Target/X86/X86Subtarget.cpp | |
parent | 08323967af949ee34d0693f94ef5e4840cc4105e (diff) | |
download | external_llvm-180a7eec612122956e1e98559d9afd2bc6272944.zip external_llvm-180a7eec612122956e1e98559d9afd2bc6272944.tar.gz external_llvm-180a7eec612122956e1e98559d9afd2bc6272944.tar.bz2 |
actually, just eliminate PCRelGVRequiresExtraLoad. It makes the code
more complex and slow than just directly testing what we care about.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index 6eb0235..d966e34 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -72,19 +72,6 @@ bool X86Subtarget::GVRequiresExtraLoad(const GlobalValue *GV, return false; } -/// PCRelGVRequiresExtraLoad - True if accessing the GV from a PC-relative -/// operand like a call target requires an extra load. -bool X86Subtarget::PCRelGVRequiresExtraLoad(const GlobalValue *GV, - const TargetMachine &TM) const { - // Windows targets only require an extra load for DLLImport linkage values, - // and they need these regardless of whether we're in PIC mode or not. - if (isTargetCygMing() || isTargetWindows()) - return GV->hasDLLImportLinkage(); - - return false; -} - - /// True if accessing the GV requires a register. This is a superset of the /// cases where GVRequiresExtraLoad is true. Some variations of PIC require /// a register, but not an extra load. |