base: Make bitunion output functions static/inline.
authorGabe Black <gabeblack@google.com>
Fri, 30 Mar 2018 00:00:20 +0000 (17:00 -0700)
committerGabe Black <gabeblack@google.com>
Fri, 30 Mar 2018 19:22:46 +0000 (19:22 +0000)
commita82283ddbcc3f1d3b801a7c8b6b0980465bf8167
tree624ee705891cc15d8c8573f4c378058e3aa19d2c
parent430bef385983db08bb1dd131f6b0ab5ca6d66fbe
base: Make bitunion output functions static/inline.

The specializations need to be online only and not static, but the
template itself is static and inline.

Originally they were in an anonymous namespace, but that causes
warnings when building on clang or with certain versions of gcc because
the functions may not be used in every .cc.

Change-Id: Iff127337f7bf0c18755de07a49d6e7a9ce6f2f0a
Reviewed-on: https://gem5-review.googlesource.com/9581
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/base/bitunion.hh