diff options
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/oat_writer.cc | 4 | ||||
| -rw-r--r-- | compiler/oat_writer.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/oat_writer.cc b/compiler/oat_writer.cc index f7465c0d5f..7cb3166cde 100644 --- a/compiler/oat_writer.cc +++ b/compiler/oat_writer.cc @@ -473,8 +473,8 @@ bool OatWriter::AddRawDexFileSource(const ArrayRef<const uint8_t>& data, return true; } -dchecked_vector<const char*> OatWriter::GetSourceLocations() const { - dchecked_vector<const char*> locations; +dchecked_vector<std::string> OatWriter::GetSourceLocations() const { + dchecked_vector<std::string> locations; locations.reserve(oat_dex_files_.size()); for (const OatDexFile& oat_dex_file : oat_dex_files_) { locations.push_back(oat_dex_file.GetLocation()); diff --git a/compiler/oat_writer.h b/compiler/oat_writer.h index 9217701bc5..024a3e80ca 100644 --- a/compiler/oat_writer.h +++ b/compiler/oat_writer.h @@ -153,7 +153,7 @@ class OatWriter { const VdexFile& vdex_file, const char* location, CreateTypeLookupTable create_type_lookup_table = CreateTypeLookupTable::kDefault); - dchecked_vector<const char*> GetSourceLocations() const; + dchecked_vector<std::string> GetSourceLocations() const; // Write raw dex files to the vdex file, mmap the file and open the dex files from it. // Supporting data structures are written into the .rodata section of the oat file. |