From 7dc11782ff0a5dffcd8108f256f8975f0b3e8076 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Thu, 25 Feb 2016 13:23:56 +0000 Subject: Implement << operator for DexRegisterLocation::Kind. This makes it comparable in DCHECK_EQ and similar methods. Change-Id: I6b5b237be89325850ae6860d011fd6741189ab01 --- runtime/quick_exception_handler.cc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'runtime/quick_exception_handler.cc') diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc index dd384c7586..fe6a529078 100644 --- a/runtime/quick_exception_handler.cc +++ b/runtime/quick_exception_handler.cc @@ -204,8 +204,7 @@ static VRegKind ToVRegKind(DexRegisterLocation::Kind kind) { return VRegKind::kDoubleHiVReg; default: - LOG(FATAL) << "Unexpected vreg location " - << DexRegisterLocation::PrettyDescriptor(kind); + LOG(FATAL) << "Unexpected vreg location " << kind; UNREACHABLE(); } } @@ -450,12 +449,11 @@ class DeoptimizeStackVisitor FINAL : public StackVisitor { } default: { LOG(FATAL) - << "Unexpected location kind" - << DexRegisterLocation::PrettyDescriptor( - vreg_map.GetLocationInternalKind(vreg, - number_of_vregs, - code_info, - encoding)); + << "Unexpected location kind " + << vreg_map.GetLocationInternalKind(vreg, + number_of_vregs, + code_info, + encoding); UNREACHABLE(); } } -- cgit v1.2.3-59-g8ed1b