aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86Subtarget.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-10 05:37:11 +0000
committerChris Lattner <sabre@nondot.org>2009-07-10 05:37:11 +0000
commit04b304caf633a471946c59c7d313e1560c5d07a5 (patch)
tree5978d385c7544f2138a772104919327d6c9ba70a /lib/Target/X86/X86Subtarget.cpp
parent0aa43de1d0ef6b5ba3a1dd7fe4f2d40797d96f5a (diff)
the "isDirectCall" operand of GVRequiresRegister is always false, eliminate it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r--lib/Target/X86/X86Subtarget.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp
index f181b38cb2..7d1f972b4e 100644
--- a/lib/Target/X86/X86Subtarget.cpp
+++ b/lib/Target/X86/X86Subtarget.cpp
@@ -76,15 +76,14 @@ bool X86Subtarget::GVRequiresExtraLoad(const GlobalValue* GV,
/// 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,
- bool isDirectCall) const {
- if (GVRequiresExtraLoad(GV, TM, isDirectCall))
+ const TargetMachine &TM) const {
+ if (GVRequiresExtraLoad(GV, TM, false))
return true;
+
// Code below here need only consider cases where GVRequiresExtraLoad
// returns false.
if (TM.getRelocationModel() == Reloc::PIC_)
- return !isDirectCall &&
- (GV->hasLocalLinkage() || GV->hasExternalLinkage());
+ return GV->hasLocalLinkage() || GV->hasExternalLinkage();
return false;
}