[profiler] Use tabledefs.h constants for method attributes.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Thu, 13 Jul 2017 13:30:37 +0000 (15:30 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 14 Jul 2017 18:24:57 +0000 (20:24 +0200)
mono/profiler/log.c

index 1f6f9f3b92894108970b77d1916ce80cf0e131b4..9a900ea1939485fa43d32bd23e89c5de453b09e1 100644 (file)
@@ -17,6 +17,7 @@
 #include <mono/metadata/mono-config.h>
 #include <mono/metadata/mono-gc.h>
 #include <mono/metadata/mono-perfcounters.h>
+#include <mono/metadata/tabledefs.h>
 #include <mono/utils/atomic.h>
 #include <mono/utils/hazard-pointer.h>
 #include <mono/utils/lock-free-alloc.h>
@@ -3218,8 +3219,8 @@ coverage_filter (MonoProfiler *prof, MonoMethod *method)
        MonoLockFreeQueueNode *node;
 
        flags = mono_method_get_flags (method, &iflags);
-       if ((iflags & 0x1000 /*METHOD_IMPL_ATTRIBUTE_INTERNAL_CALL*/) ||
-           (flags & 0x2000 /*METHOD_ATTRIBUTE_PINVOKE_IMPL*/))
+       if ((iflags & METHOD_IMPL_ATTRIBUTE_INTERNAL_CALL) ||
+           (flags & METHOD_ATTRIBUTE_PINVOKE_IMPL))
                return FALSE;
 
        // Don't need to do anything else if we're already tracking this method