Change attr_form_is_block to be a method
[deliverable/binutils-gdb.git] / gdb / dwarf2 / attribute.c
index 6e51fff53624982004700c1a4469bcb5f6978984..6efff3e2c0abd2f7a2dcf4da8b4b7b6fc3465229 100644 (file)
@@ -59,15 +59,14 @@ attribute::value_as_address () const
 
 /* See attribute.h.  */
 
-int
-attr_form_is_block (const struct attribute *attr)
+bool
+attribute::form_is_block () const
 {
-  return (attr == NULL ? 0 :
-      attr->form == DW_FORM_block1
-      || attr->form == DW_FORM_block2
-      || attr->form == DW_FORM_block4
-      || attr->form == DW_FORM_block
-      || attr->form == DW_FORM_exprloc);
+  return (form == DW_FORM_block1
+         || form == DW_FORM_block2
+         || form == DW_FORM_block4
+         || form == DW_FORM_block
+         || form == DW_FORM_exprloc);
 }
 
 /* See attribute.h.  */
This page took 0.026824 seconds and 4 git commands to generate.