Allows us to access all elements at once.
per_cu->queued = 1;
gdb_assert (per_objfile->queue.has_value ());
- per_objfile->queue->emplace (per_cu, per_objfile, pretend_language);
+ per_objfile->queue->emplace_back (per_cu, per_objfile, pretend_language);
}
/* If PER_CU is not yet expanded of queued for expansion, add it to the queue.
}
per_cu->queued = 0;
- per_objfile->queue->pop ();
+ per_objfile->queue->pop_front ();
}
dwarf_read_debug_printf ("Done expanding symtabs of %s.",
#ifndef DWARF2READ_H
#define DWARF2READ_H
-#include <queue>
+#include <deque>
#include <unordered_map>
#include "dwarf2/comp-unit-head.h"
#include "dwarf2/cooked-index.h"
dwarf2_cu *sym_cu = nullptr;
/* CUs that are queued to be read. */
- gdb::optional<std::queue<dwarf2_queue_item>> queue;
+ gdb::optional<std::deque<dwarf2_queue_item>> queue;
private:
/* Hold the corresponding compunit_symtab for each CU or TU. This