diff options
| author | David Srbecky <dsrbecky@google.com> | 2017-12-13 09:52:12 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-12-13 09:52:12 +0000 |
| commit | 3f74ea478d755453a2fe5789ce155e80be3e7c7f (patch) | |
| tree | d28868a2efebae079e1f26d146acd6503f3de45d /compiler/debug/elf_debug_info_writer.h | |
| parent | b67c20cea4deb9b42c196ec834f9fea1921dcb7b (diff) | |
| parent | e155f4b858be42a825e8270f65abb0fdcf6cbc9f (diff) | |
| download | art-3f74ea478d755453a2fe5789ce155e80be3e7c7f.tar.gz art-3f74ea478d755453a2fe5789ce155e80be3e7c7f.tar.bz2 art-3f74ea478d755453a2fe5789ce155e80be3e7c7f.zip | |
Merge "Decouple virtual memory allocation in ElfBuilder."
Diffstat (limited to 'compiler/debug/elf_debug_info_writer.h')
| -rw-r--r-- | compiler/debug/elf_debug_info_writer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/debug/elf_debug_info_writer.h b/compiler/debug/elf_debug_info_writer.h index 81a0a69bfa..107ed488cd 100644 --- a/compiler/debug/elf_debug_info_writer.h +++ b/compiler/debug/elf_debug_info_writer.h @@ -298,7 +298,7 @@ class ElfCompilationUnitWriter { CHECK_EQ(info_.Depth(), 0); std::vector<uint8_t> buffer; buffer.reserve(info_.data()->size() + KB); - const size_t offset = owner_->builder_->GetDebugInfo()->GetSize(); + const size_t offset = owner_->builder_->GetDebugInfo()->GetPosition(); // All compilation units share single table which is at the start of .debug_abbrev. const size_t debug_abbrev_offset = 0; WriteDebugInfoCU(debug_abbrev_offset, info_, offset, &buffer, &owner_->debug_info_patches_); @@ -463,7 +463,7 @@ class ElfCompilationUnitWriter { CHECK_EQ(info_.Depth(), 0); std::vector<uint8_t> buffer; buffer.reserve(info_.data()->size() + KB); - const size_t offset = owner_->builder_->GetDebugInfo()->GetSize(); + const size_t offset = owner_->builder_->GetDebugInfo()->GetPosition(); // All compilation units share single table which is at the start of .debug_abbrev. const size_t debug_abbrev_offset = 0; WriteDebugInfoCU(debug_abbrev_offset, info_, offset, &buffer, &owner_->debug_info_patches_); |
