base: Cleanup Debug::CompoundFlag
authorAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 4 Sep 2020 14:10:53 +0000 (15:10 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 7 Sep 2020 08:42:07 +0000 (08:42 +0000)
commite9075be4f9b4b70170ab0eb0ae5ea6f728597dd8
tree286d46c58bfd7ee2e61a38fc4df2f2d6b52824d6
parenta1a2edd2a6e104aa9ffdc4ada705f71b89f586d8
base: Cleanup Debug::CompoundFlag

Compound flags are currently constructed using a constructor with a
finite set of arguments that default to nullptr that refer to child
flags. C++11 introduces two cleaner ways to achieve the same thing,
variadic templates and initializer_list. Use an initializer list to
pass dependent flags.

Change-Id: Iadcd04986ab20efccfae9b92b26c079b9612262e
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34115
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/SConscript
src/base/debug.hh