aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86Subtarget.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-10 07:38:24 +0000
committerChris Lattner <sabre@nondot.org>2009-07-10 07:38:24 +0000
commitdfed413ef6bfb05754ee5a9f3a3c7f98c764a374 (patch)
treee3cc2c82b1449cf24cdd8f5568466abe1a563a37 /lib/Target/X86/X86Subtarget.cpp
parent36c250112143a11d0afd4aba91a9e742031e4152 (diff)
eliminate GVRequiresRegister, replacing it with predicates we
need for other purposes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75243 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r--lib/Target/X86/X86Subtarget.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp
index d9c915a696..82eee216bd 100644
--- a/lib/Target/X86/X86Subtarget.cpp
+++ b/lib/Target/X86/X86Subtarget.cpp
@@ -120,20 +120,6 @@ bool X86Subtarget::GVRequiresExtraLoad(const GlobalValue *GV,
return isGlobalStubReference(ClassifyGlobalReference(GV, TM));
}
-/// 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.
-bool X86Subtarget::GVRequiresRegister(const GlobalValue *GV,
- const TargetMachine &TM) const {
- if (GVRequiresExtraLoad(GV, TM))
- return true;
-
- // Code below here need only consider cases where GVRequiresExtraLoad
- // returns false.
- if (TM.getRelocationModel() == Reloc::PIC_)
- return GV->hasLocalLinkage() || GV->hasExternalLinkage();
- return false;
-}
/// getBZeroEntry - This function returns the name of a function which has an
/// interface like the non-standard bzero function, if such a function exists on