Provide a convenience for logging types that don't have an operator<<.
Change-Id: I650b852ded67576dc5ec7c8e57732cfb49f1ecd6
diff --git a/src/dex_verifier.cc b/src/dex_verifier.cc
index d521e91..79a455e 100644
--- a/src/dex_verifier.cc
+++ b/src/dex_verifier.cc
@@ -890,12 +890,9 @@
DexVerifier verifier(method);
verifier.Verify();
- LogMessage log(__FILE__, __LINE__, INFO, -1);
- log.stream() << "Dump of method " << PrettyMethod(method) << " "
- << verifier.fail_messages_.str();
- log.stream() << std::endl << verifier.info_messages_.str();
-
- verifier.Dump(log.stream());
+ LOG(INFO) << "Dump of method " << PrettyMethod(method) << " "
+ << verifier.fail_messages_.str() << std::endl
+ << verifier.info_messages_.str() << Dumpable<DexVerifier>(verifier);
}
DexVerifier::DexVerifier(Method* method) : java_lang_throwable_(NULL), work_insn_idx_(-1),