struct using_direct *using_decl = nullptr;
};
-static void block_initialize_namespace (struct block *block,
- struct obstack *obstack);
-
/* See block.h. */
struct objfile *
return "";
}
+/* If block->namespace_info () is NULL, allocate it via OBSTACK and
+ initialize its members to zero. */
+
+static void
+block_initialize_namespace (struct block *block, struct obstack *obstack)
+{
+ if (block->namespace_info () == NULL)
+ block->set_namespace_info (new (obstack) struct block_namespace_info ());
+}
+
/* Set BLOCK's scope member to SCOPE; if needed, allocate memory via
OBSTACK. (It won't make a copy of SCOPE, however, so that already
has to be allocated correctly.) */
block->namespace_info ()->using_decl = using_decl;
}
-/* If block->namespace_info () is NULL, allocate it via OBSTACK and
- initialize its members to zero. */
-
-static void
-block_initialize_namespace (struct block *block, struct obstack *obstack)
-{
- if (block->namespace_info () == NULL)
- block->set_namespace_info (new (obstack) struct block_namespace_info ());
-}
-
/* Return the static block associated to BLOCK. Return NULL if block
is NULL or if block is a global block. */