diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-09-03 04:37:05 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-09-03 04:37:05 +0000 |
commit | d0da6ff3ad761dc5eb00cbe32b850de7b0bf27b6 (patch) | |
tree | a92c56b39faf0bdabfc1604b7fbab6bc4b5e66a1 /lib/Target/X86/X86JITInfo.h | |
parent | 9bd2acb3b253c77dd1f7680a2e6505039e9c49a5 (diff) | |
download | llvm-d0da6ff3ad761dc5eb00cbe32b850de7b0bf27b6.tar.gz llvm-d0da6ff3ad761dc5eb00cbe32b850de7b0bf27b6.tar.bz2 llvm-d0da6ff3ad761dc5eb00cbe32b850de7b0bf27b6.tar.xz |
X86JITInfo::getLazyResolverFunction() should not read cpu id to determine whether sse is available. Just use consult subtarget.
No functionality changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80880 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86JITInfo.h')
-rw-r--r-- | lib/Target/X86/X86JITInfo.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Target/X86/X86JITInfo.h b/lib/Target/X86/X86JITInfo.h index 6a4e2148a5..c381433bf3 100644 --- a/lib/Target/X86/X86JITInfo.h +++ b/lib/Target/X86/X86JITInfo.h @@ -20,16 +20,15 @@ namespace llvm { class X86TargetMachine; + class X86Subtarget; class X86JITInfo : public TargetJITInfo { X86TargetMachine &TM; + const X86Subtarget *Subtarget; uintptr_t PICBase; char* TLSOffset; public: - explicit X86JITInfo(X86TargetMachine &tm) : TM(tm) { - useGOT = 0; - TLSOffset = 0; - } + explicit X86JITInfo(X86TargetMachine &tm); /// replaceMachineCodeForFunction - Make it so that calling the function /// whose machine code is at OLD turns into a call to NEW, perhaps by |