scons: Break make_obj into make_static and make_shared functions.
authorGabe Black <gabeblack@google.com>
Tue, 21 Nov 2017 02:34:11 +0000 (18:34 -0800)
committerGabe Black <gabeblack@google.com>
Mon, 27 Nov 2017 22:10:44 +0000 (22:10 +0000)
commitbe62a45749dcc4eca09042eea52c04eb7f2ab864
tree6923ed46e506051f3af41a468f191952b4ce9dfa
parent82f76b8df0f4e6f46f5b0322dd30e5585c8eb9f9
scons: Break make_obj into make_static and make_shared functions.

The make_obj function took a boolean value which just selected which
of the two lines it in would actually do something. This change breaks
it into two lambdas, make_static and make_shared, which just do
whichever line would have been requested, making the funciton name more
self descriptive and getting rid of the generally unnamed and opaque
boolean argument.

Change-Id: I457e40034b7e7f5a3e7294a8e1f15bbd42e0720e
Reviewed-on: https://gem5-review.googlesource.com/5984
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/SConscript