diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-10 07:48:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-10 07:48:51 +0000 |
commit | 0d786dd954622b8e7981eee32e9d585ee067d9c5 (patch) | |
tree | 44b7b080e5af5622d236feb35c637522387df4fc /lib/Target/X86/X86Subtarget.cpp | |
parent | dfed413ef6bfb05754ee5a9f3a3c7f98c764a374 (diff) |
simplify fast isel by using ClassifyGlobalReference. This
elimiantes the last use of GVRequiresExtraLoad, so delete it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index 82eee216bd..6665c67baf 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -111,15 +111,6 @@ ClassifyGlobalReference(const GlobalValue *GV, const TargetMachine &TM) const { return X86II::MO_NO_FLAG; } -/// True if accessing the GV requires an extra load. For Windows, dllimported -/// symbols 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. -bool X86Subtarget::GVRequiresExtraLoad(const GlobalValue *GV, - const TargetMachine &TM) const { - return isGlobalStubReference(ClassifyGlobalReference(GV, TM)); -} - /// 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 |