Add psymtab_storage::allocate_dependencies
[deliverable/binutils-gdb.git] / gdb / psymtab.h
index d0e596980d12d12548f9c755175c973199705c1e..57570e3d2f41f4827692d0e37adacb70d0af31eb 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef PSYMTAB_H
 #define PSYMTAB_H
 
+#include "gdb_obstack.h"
 #include "symfile.h"
 #include "common/next-iterator.h"
 
@@ -62,6 +63,14 @@ public:
     return m_obstack;
   }
 
+  /* Allocate storage for the "dependencies" field of a psymtab.
+     NUMBER says how many dependencies there are.  */
+
+  struct partial_symtab **allocate_dependencies (int number)
+  {
+    return OBSTACK_CALLOC (obstack (), number, struct partial_symtab *);
+  }
+
 
   /* Each objfile points to a linked list of partial symtabs derived from
      this file, one partial symtab structure for each compilation unit
This page took 0.023628 seconds and 4 git commands to generate.