[mips] Switch asm to __asm__ for non-GNU compiles.

Summary:
Using asm works fine for gnu11, but fails if the compiler uses C11.
Switch to the more consistent __asm__, since that is what the rest of
the source is using.

Reviewers: petarj

Reviewed By: petarj

Subscribers: llvm-commits, sdardis, arichardson, pirama

Differential Revision: https://reviews.llvm.org/D35756

llvm-svn: 308922
This commit is contained in:
Stephen Hines 2017-07-24 20:25:08 +00:00
parent 0a26c5738d
commit aba18768f4
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ uintptr_t GetCurrentProcess(void);
* clear_mips_cache - Invalidates instruction cache for Mips. * clear_mips_cache - Invalidates instruction cache for Mips.
*/ */
static void clear_mips_cache(const void* Addr, size_t Size) { static void clear_mips_cache(const void* Addr, size_t Size) {
asm volatile ( __asm__ volatile (
".set push\n" ".set push\n"
".set noreorder\n" ".set noreorder\n"
".set noat\n" ".set noat\n"