X86JITInfo: [x86] Use X86CompilationCallback_SSE() along;

*not* Subtarget->hasSSE1()
  *but* __SSE__, the flag that LLVM libraries are compiled

The callback calls internal LLVM JIT libraries. It may be built with -msse (or above).

FIXME: JIT may use "host" instead of "generic" by default.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2014-04-15 04:12:21 +00:00
parent 5a2d3f4c81
commit 88f353252d

View File

@ -426,9 +426,8 @@ X86JITInfo::getLazyResolverFunction(JITCompilerFn F) {
JITCompilerFunction = F;
TsanIgnoreWritesEnd();
#if defined (X86_32_JIT) && !defined (_MSC_VER)
if (Subtarget->hasSSE1())
return X86CompilationCallback_SSE;
#if defined (X86_32_JIT) && !defined (_MSC_VER) && defined(__SSE__)
return X86CompilationCallback_SSE;
#endif
return X86CompilationCallback;