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:
sudonim1@gmail.com 2012-04-06 18:41:20 +00:00
parent 8b563888f8
commit 2e22e56b48
1 changed files with 3 additions and 1 deletions

View File

@ -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 }