From 9974e3cdc1564edc3143b90d7bb2a416f1f887e7 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 10 Jun 2020 16:27:06 +0100 Subject: Clean up generated operator<<(os, enum). Pass enums by value instead of const reference. Do not generate operator<< sources for headers that have no enums or no declarations of operator<<. Do not define the operator<< for flag enums; these were unused anyway. Add generated operator<< for some enums in nodes.h . Change the operator<< for ComparisonBias so that the graph visualizer can use it but do not use the generated operator<< yet as that would require changing checker tests. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: Ifd4c455c2fa921a9668c966a13068d43b9c6e173 --- runtime/class_status.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/class_status.h') diff --git a/runtime/class_status.h b/runtime/class_status.h index b194ffa861..6c686a4876 100644 --- a/runtime/class_status.h +++ b/runtime/class_status.h @@ -99,7 +99,7 @@ enum class ClassStatus : uint8_t { kLast = kVisiblyInitialized }; -std::ostream& operator<<(std::ostream& os, const ClassStatus& rhs); +std::ostream& operator<<(std::ostream& os, ClassStatus rhs); } // namespace art -- cgit v1.2.3-59-g8ed1b