Refactor the DBG_CheckStackAlignment support to be more consistent with the rest...
authorGeoff Norton <grompf@gmail.com>
Sat, 7 Feb 2015 01:09:25 +0000 (17:09 -0800)
committerGeoff Norton <grompf@gmail.com>
Sat, 7 Feb 2015 01:09:25 +0000 (17:09 -0800)
src/pal/src/CMakeLists.txt
src/pal/src/arch/i386/context.S [moved from src/pal/src/arch/i386/context.clang.s with 100% similarity]
src/pal/src/arch/i386/context.cpp

index 9401e00..52bbd61 100644 (file)
@@ -12,7 +12,7 @@ include_directories(include)
 if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
   add_definitions(-D_TARGET_MAC64)
   set(PLATFORM_SOURCES
-    arch/i386/context.clang.s
+    arch/i386/context.S
     arch/i386/dispatchexceptionwrapper.S
     exception/machexception.cpp
     exception/machmessage.cpp
index ffccf0f..f9ff458 100644 (file)
@@ -1322,7 +1322,8 @@ Function:
 --*/
 // Bullseye has parsing problems if "asm" comes after VOID
 
-#ifndef __clang__
+#ifndef __llvm__
+asm
 VOID 
 DBG_CheckStackAlignment()
 {
@@ -1346,6 +1347,6 @@ DBG_CheckStackAlignment()
     // Epilog
     leave
 }
-#endif // !__clang__
+#endif // !__llvm__
 #endif // DEBUG && APPLE