Do not allocate psymtabs via psymtab_storage
[deliverable/binutils-gdb.git] / gdb / psymtab.h
index c0f0a97eb23837968a1af74782cefe2238615577..d66547418cb91c40c118b8bb2e174694051a6377 100644 (file)
@@ -83,11 +83,10 @@ public:
     return OBSTACK_CALLOC (obstack (), number, struct partial_symtab *);
   }
 
-  /* Allocate a new psymtab on the psymtab obstack.  The new psymtab
-     will be linked in to the "psymtabs" list, but otherwise all other
-     fields will be zero.  */
+  /* Install a psymtab on the psymtab list.  This transfers ownership
+     of PST to this object.  */
 
-  struct partial_symtab *allocate_psymtab ();
+  void install_psymtab (partial_symtab *pst);
 
   typedef next_adapter<struct partial_symtab> partial_symtab_range;
 
This page took 0.02325 seconds and 4 git commands to generate.