summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/options/main.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-06-30 02:32:20 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-06-30 02:32:20 +0000
commit758032726d8e4ed1005c26ef61abde406df124af (patch)
treecf8bc2bcc757e7f052bcf49b5a7f84a6a8921eb7 /lldb/packages/Python/lldbsuite/test/expression_command/options/main.cpp
parentd86e38e1dbe318f5efed215ccf4ef22965591bf2 (diff)
downloadbcm5719-llvm-758032726d8e4ed1005c26ef61abde406df124af.tar.gz
bcm5719-llvm-758032726d8e4ed1005c26ef61abde406df124af.zip
[ADT] Add a new data structure for managing a priority worklist where
re-insertion of entries into the worklist moves them to the end. This is fairly similar to a SetVector, but helps in the case where in addition to not inserting duplicates you want to adjust the sequence of a pop-off-the-back worklist. I'm not at all attached to the name of this data structure if others have better suggestions, but this is one that David Majnemer brought up in IRC discussions that seems plausible. I've trimmed the interface down somewhat from SetVector's interface because several things make less sense here IMO: iteration primarily. I'd prefer to add these back as we have users that need them. My use case doesn't even need all of what is provided here. =] I've also included a basic unittest to make sure this functions reasonably. Differential Revision: http://reviews.llvm.org/D21866 llvm-svn: 274198
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/options/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud