diff options
Diffstat (limited to 'libartbase/base/enums.h')
| -rw-r--r-- | libartbase/base/enums.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/libartbase/base/enums.h b/libartbase/base/enums.h index ad5578fc81..c5fb880ba5 100644 --- a/libartbase/base/enums.h +++ b/libartbase/base/enums.h @@ -18,7 +18,7 @@ #define ART_LIBARTBASE_BASE_ENUMS_H_ #include <cstddef> -#include <ostream> +#include <iosfwd> namespace art { @@ -27,14 +27,7 @@ enum class PointerSize : size_t { k64 = 8 }; -inline std::ostream& operator<<(std::ostream& os, const PointerSize& rhs) { - switch (rhs) { - case PointerSize::k32: os << "k32"; break; - case PointerSize::k64: os << "k64"; break; - default: os << "PointerSize[" << static_cast<int>(rhs) << "]"; break; - } - return os; -} +std::ostream& operator<<(std::ostream& os, const PointerSize& rhs); static constexpr PointerSize kRuntimePointerSize = sizeof(void*) == 8U ? PointerSize::k64 |