add_symbol_to_list is just a simple wrapper for push_back, so we might
as well inline it.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
return m_pending_macros;
}
-/* Maintain the lists of symbols and blocks. */
-
-/* Add a symbol to one of the lists of symbols. */
-
-void
-add_symbol_to_list (symbol *symbol, std::vector<struct symbol *> &list)
-{
- list.push_back (symbol);
-}
-
/* Record BLOCK on the list of all blocks in the file. Put it after
OPBLOCK, or at the beginning if opblock is NULL. This puts the
block in the list after all its subblocks. */
using buildsym_compunit_up = std::unique_ptr<buildsym_compunit>;
-extern void add_symbol_to_list (symbol *symbol,
- std::vector<struct symbol *> &list);
+static inline
+void add_symbol_to_list (symbol *symbol, std::vector<struct symbol *> &list)
+{
+ list.push_back (symbol);
+}
#endif /* GDB_BUILDSYM_H */