summaryrefslogtreecommitdiffstats
path: root/oatdump
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2015-04-28 17:54:52 +0100
committerDavid Srbecky <dsrbecky@google.com>2015-04-28 18:13:35 +0100
commit0c5bbc11a6af7b4f83b3929bc99de690635095c0 (patch)
tree4d72ed70efa866e94804e9a6fb210cad34a9abc4 /oatdump
parent1c5808c0fa83155565f5319808a2949e0a3f5789 (diff)
downloadart-0c5bbc11a6af7b4f83b3929bc99de690635095c0.tar.gz
art-0c5bbc11a6af7b4f83b3929bc99de690635095c0.tar.bz2
art-0c5bbc11a6af7b4f83b3929bc99de690635095c0.zip
Minor refactoring of ElfBuilder.
* Nest section builder classes within the main builder class to reduce verbosity caused by templates. * Move .eh_frame and .eh_frame_hdr section headers earlier so that the section headers are sorted by file offset. * Do not emit PT_NULL header if .eh_frame_hdr is missing. None of these changes should have any material impact. This CL just prepares ground for the following CL. Change-Id: I56f9825892adb01d413a18ca10cb5c805cb8cd78
Diffstat (limited to 'oatdump')
-rw-r--r--oatdump/oatdump.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc
index f2e35af097..e1427425ae 100644
--- a/oatdump/oatdump.cc
+++ b/oatdump/oatdump.cc
@@ -269,7 +269,7 @@ class OatSymbolizer FINAL : public CodeOutput {
pretty_name = "[Dedup]" + pretty_name;
}
- ElfSymtabBuilder<ElfTypes32>* symtab = builder_->GetSymtabBuilder();
+ auto* symtab = builder_->GetSymtabBuilder();
symtab->AddSymbol(pretty_name, &builder_->GetTextBuilder(),
oat_method.GetCodeOffset() - oat_file_->GetOatHeader().GetExecutableOffset(),