attrmap: extend -remove to allow removing attributes with any value.
authorwhitequark <whitequark@whitequark.org>
Mon, 22 Apr 2019 14:18:15 +0000 (14:18 +0000)
committerwhitequark <whitequark@whitequark.org>
Mon, 22 Apr 2019 14:18:15 +0000 (14:18 +0000)
commitaeeefc32d8603b138f24824d01b29d28cb0f85cf
tree111ff3104e02f55f2cd2f30db227853f4e93648e
parentc0f9a74b121dd19e359038b6f6f76be0ffe3cc38
attrmap: extend -remove to allow removing attributes with any value.

Currently, `-remove foo` would only remove an attribute `foo = ""`,
which doesn't work on an attribute like `src` that may have any
value. Extend `-remove` to handle both cases. `-remove foo=""` has
the old behavior, and `-remove foo` will remove the attribute with
whatever value it may have, which is still compatible with the old
behavior.
passes/techmap/attrmap.cc