Skip to content

Commit

Permalink
tbv2: change instruction stack from deque to vector
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHillion committed Oct 25, 2023
1 parent cc6c7bf commit 6f35801
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/oi/IntrospectionResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@ class IntrospectionResult {
const_iterator operator++(int);

private:
using stack_t =
std::stack<exporters::inst::Inst, std::vector<exporters::inst::Inst>>;

const_iterator(std::vector<uint8_t>::const_iterator data,
exporters::inst::Inst type);
const_iterator(std::vector<uint8_t>::const_iterator data);

std::vector<uint8_t>::const_iterator data_;
std::stack<exporters::inst::Inst> stack_;
stack_t stack_;
std::optional<result::Element> next_;

std::vector<std::string_view> type_path_;
Expand Down

0 comments on commit 6f35801

Please sign in to comment.