diff options
| author | 2021-05-17 14:29:09 -0700 | |
|---|---|---|
| committer | 2021-05-18 22:41:46 +0000 | |
| commit | 2f1ad346ad9524fa632368ae56cd2024638ace42 (patch) | |
| tree | 9255199d223d0c0c59036e147d3b5fe8652e0b0e /compiler/optimizing/graph_visualizer.h | |
| parent | 07ff2833c7425cef87abad3e21b3f884597dc58c (diff) | |
Parse --cpu-set as ParseIntList
An argument of --cpu-set=1,2,3 is currently parsed into a
vector<int32_t>. This causes two problems:
1. With the type CmdlineType<std::vector<int32_t>> that internally does
the comma spliting, it prevents us from adding another type of int
vector (e.g. multiple --dex-fd $FD). This is inconsistent to existing
string and vector<string> parsing.
2. A delimiter-separated argument like "-Xbootclasspath:" is parsed with
ParseStringList, which keeps the types of "string vector" seperated
(depending on whether it comes from a single argument, like
"-Xbootclasspath:", or multiple arguments, like --dex-file).
This change replaces the parser of vector<int32_t> with the new
ParseIntList, which solves the two problems above.
Bug: 187327262
Test: atest art_cmdline_tests
Test: TH
Change-Id: I2f225ec2c9f47f1bf1df76507ccb67b23bb51861
Diffstat (limited to 'compiler/optimizing/graph_visualizer.h')
0 files changed, 0 insertions, 0 deletions