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 | 47455a79aeb7ce90a09873bfd9aa1cbf409696ec (patch) | |
tree | 089c9a9624628e46e8ebc2e4d341cca54f6daaee /llvm/lib/Target/X86/X86JITInfo.h | |
parent | 231dd7169dd24f87e6e460d1c4b6681e040fb23d (diff) | |
download | bcm5719-llvm-47455a79aeb7ce90a09873bfd9aa1cbf409696ec.tar.gz bcm5719-llvm-47455a79aeb7ce90a09873bfd9aa1cbf409696ec.zip |
X86JITInfo::getLazyResolverFunction() should not read cpu id to determine whether sse is available. Just use consult subtarget.
No functionality changes.
llvm-svn: 80880
Diffstat (limited to 'llvm/lib/Target/X86/X86JITInfo.h')
-rw-r--r-- | llvm/lib/Target/X86/X86JITInfo.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86JITInfo.h b/llvm/lib/Target/X86/X86JITInfo.h index 6a4e2148a5a..c381433bf35 100644 --- a/llvm/lib/Target/X86/X86JITInfo.h +++ b/llvm/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 |