summaryrefslogtreecommitdiff
path: root/compiler/elf_builder.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2016-01-20 19:13:01 +0000
committer Vladimir Marko <vmarko@google.com> 2016-01-20 19:13:01 +0000
commit919f5536182890d2e03f59b961acf8f7c836ff61 (patch)
tree8e8b9c330ae9c886611c6e5ae598e21d9b3ea17a /compiler/elf_builder.h
parent625a64aad13905d8a2454bf3cc0e874487b110d5 (diff)
Revert "Write dex files to oat file early."
This reverts commit 625a64aad13905d8a2454bf3cc0e874487b110d5. Breaks the Mac build: Undefined symbols for architecture i386: "_CloseArchive", referenced from: ... in oat_writer.o ld: symbol(s) not found for architecture i386 Change-Id: I21608bc51437834e1e6abde9bcbe5e7d9998197e
Diffstat (limited to 'compiler/elf_builder.h')
-rw-r--r--compiler/elf_builder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/elf_builder.h b/compiler/elf_builder.h
index 46484b1cd6..a7461a5525 100644
--- a/compiler/elf_builder.h
+++ b/compiler/elf_builder.h
@@ -100,6 +100,12 @@ class ElfBuilder FINAL {
header_.sh_entsize = entsize;
}
+ ~Section() OVERRIDE {
+ if (started_) {
+ CHECK(finished_);
+ }
+ }
+
// Start writing of this section.
void Start() {
CHECK(!started_);