Add a compile-time constant bool equivalent to !defined(NDEBUG).

This makes some code slightly less awkward.

Change-Id: Iafd359dd0baa65510ed9510a7d93ee01605f51e4
diff --git a/src/object.h b/src/object.h
index 4e3e850..cfea1c9 100644
--- a/src/object.h
+++ b/src/object.h
@@ -2333,8 +2333,10 @@
   return GetField32(OFFSET_OF_OBJECT_MEMBER(Method, method_dex_index_), false);
 }
 
-#if !defined(NDEBUG)
 inline void Method::AssertPcIsWithinCode(uintptr_t pc) const {
+  if (!kIsDebugBuild) {
+    return;
+  }
   if (IsNative() || IsRuntimeMethod() || IsProxyMethod()) {
     return;
   }
@@ -2348,9 +2350,6 @@
       << " code=" << GetCode()
       << " size=" << GetCodeSize();
 }
-#else
-inline void Method::AssertPcIsWithinCode(uintptr_t) const {}
-#endif
 
 inline String* Class::GetName() const {
   return GetFieldObject<String*>(OFFSET_OF_OBJECT_MEMBER(Class, name_), false);