mirror of https://github.com/PCSX2/pcsx2.git
Fixed PGO builds, MSVC does not like inline asm for function calls.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5146 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
8b563888f8
commit
2e22e56b48
|
@ -57,8 +57,10 @@
|
|||
// insisting on "mov eax, immaddr; call eax". Likewise, GCC fails to optimize it also, unless
|
||||
// the typecast is explicitly inlined. These macros account for these problems.
|
||||
//
|
||||
// But it turns out that MSVC is quite capable of optimising important code out of existance
|
||||
// if we use these macros in our PGO builds, so it's better just to live with the inefficient call.
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#ifdef _MSC_HAS_FIXED_INLINE_ASM_PGO
|
||||
|
||||
# define CallAddress( ptr ) \
|
||||
__asm{ call offset ptr }
|
||||
|
|
Loading…
Reference in New Issue