diff options
Diffstat (limited to 'runtime/oat_file_assistant.cc')
-rw-r--r-- | runtime/oat_file_assistant.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/runtime/oat_file_assistant.cc b/runtime/oat_file_assistant.cc index e919b36b99..29b879ee80 100644 --- a/runtime/oat_file_assistant.cc +++ b/runtime/oat_file_assistant.cc @@ -29,7 +29,6 @@ #include <set> #include "base/logging.h" -#include "base/out.h" #include "base/stringprintf.h" #include "class_linker.h" #include "gc/heap.h" @@ -231,7 +230,7 @@ std::vector<std::unique_ptr<const DexFile>> OatFileAssistant::LoadDexFiles( return std::vector<std::unique_ptr<const DexFile>>(); } - std::unique_ptr<const DexFile> dex_file = oat_dex_file->OpenDexFile(outof(error_msg)); + std::unique_ptr<const DexFile> dex_file = oat_dex_file->OpenDexFile(&error_msg); if (dex_file.get() == nullptr) { LOG(WARNING) << "Failed to open dex file from oat dex file: " << error_msg; return std::vector<std::unique_ptr<const DexFile>>(); @@ -247,7 +246,7 @@ std::vector<std::unique_ptr<const DexFile>> OatFileAssistant::LoadDexFiles( break; } - dex_file = oat_dex_file->OpenDexFile(outof(error_msg)); + dex_file = oat_dex_file->OpenDexFile(&error_msg); if (dex_file.get() == nullptr) { LOG(WARNING) << "Failed to open dex file from oat dex file: " << error_msg; return std::vector<std::unique_ptr<const DexFile>>(); @@ -272,7 +271,7 @@ const std::string* OatFileAssistant::OdexFileName() { std::string error_msg; cached_odex_file_name_found_ = DexFilenameToOdexFilename( - dex_location_, isa_, &cached_odex_file_name_, outof(error_msg)); + dex_location_, isa_, &cached_odex_file_name_, &error_msg); if (!cached_odex_file_name_found_) { // If we can't figure out the odex file, we treat it as if the odex // file was inaccessible. @@ -340,7 +339,7 @@ const std::string* OatFileAssistant::OatFileName() { DalvikCacheDirectory().c_str(), GetInstructionSetString(isa_)); std::string error_msg; cached_oat_file_name_found_ = GetDalvikCacheFilename(dex_location_, - cache_dir.c_str(), &cached_oat_file_name_, outof(error_msg)); + cache_dir.c_str(), &cached_oat_file_name_, &error_msg); if (!cached_oat_file_name_found_) { // If we can't determine the oat file name, we treat the oat file as // inaccessible. @@ -433,7 +432,7 @@ bool OatFileAssistant::GivenOatFileIsOutOfDate(const OatFile& file) { std::string error_msg; uint32_t expected_secondary_checksum = 0; if (DexFile::GetChecksum(secondary_dex_location.c_str(), - &expected_secondary_checksum, outof(error_msg))) { + &expected_secondary_checksum, &error_msg)) { uint32_t actual_secondary_checksum = secondary_oat_dex_file->GetDexFileLocationChecksum(); if (expected_secondary_checksum != actual_secondary_checksum) { @@ -723,7 +722,7 @@ bool OatFileAssistant::Dex2Oat(const std::vector<std::string>& args, if (runtime->IsDebuggable()) { argv.push_back("--debuggable"); } - runtime->AddCurrentRuntimeFeaturesAsDex2OatArguments(outof(argv)); + runtime->AddCurrentRuntimeFeaturesAsDex2OatArguments(&argv); if (!runtime->IsVerificationEnabled()) { argv.push_back("--compiler-filter=verify-none"); @@ -874,7 +873,7 @@ const OatFile* OatFileAssistant::GetOdexFile() { std::string error_msg; cached_odex_file_.reset(OatFile::Open(odex_file_name.c_str(), odex_file_name.c_str(), nullptr, nullptr, load_executable_, - dex_location_, outof(error_msg))); + dex_location_, &error_msg)); if (cached_odex_file_.get() == nullptr) { VLOG(oat) << "OatFileAssistant test for existing pre-compiled oat file " << odex_file_name << ": " << error_msg; @@ -905,7 +904,7 @@ const OatFile* OatFileAssistant::GetOatFile() { std::string error_msg; cached_oat_file_.reset(OatFile::Open(oat_file_name.c_str(), oat_file_name.c_str(), nullptr, nullptr, load_executable_, - dex_location_, outof(error_msg))); + dex_location_, &error_msg)); if (cached_oat_file_.get() == nullptr) { VLOG(oat) << "OatFileAssistant test for existing oat file " << oat_file_name << ": " << error_msg; |