From ae5d2738a2b941b543c3fd478af910d4cd16f2ba Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Fri, 5 Feb 2016 09:40:10 +0000 Subject: Change the method which generates DWARF mini-debug-info. This splits some code from CL198651. It moves the WriteSection call out one level and does not otherwise change behaviour. Change-Id: I7dc1c7c08b577b50bf6fa366a9b0ca757048b81e --- compiler/elf_builder.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'compiler/elf_builder.h') diff --git a/compiler/elf_builder.h b/compiler/elf_builder.h index bc7c83ed7d..b673eeb3b6 100644 --- a/compiler/elf_builder.h +++ b/compiler/elf_builder.h @@ -361,12 +361,6 @@ class ElfBuilder FINAL { other_sections_.push_back(std::move(s)); } - // Set where the next section will be allocated in the virtual address space. - void SetVirtualAddress(Elf_Addr address) { - DCHECK_GE(address, virtual_address_); - virtual_address_ = address; - } - // Reserve space for ELF header and program headers. // We do not know the number of headers until later, so // it is easiest to just reserve a fixed amount of space. -- cgit v1.2.3-59-g8ed1b