ART: Enable Clang's -Wdeprecated
Replace throw() with noexcept.
Add default copy constructors and copy assignment constructors for
cases with destructors, as the implicit definition is deprecated.
Change-Id: Ice306a3f510b072b00bec4d4360f7c8055135c9d
diff --git a/runtime/oat.h b/runtime/oat.h
index 120de6d..de95fef 100644
--- a/runtime/oat.h
+++ b/runtime/oat.h
@@ -156,6 +156,8 @@
~OatMethodOffsets();
+ OatMethodOffsets& operator=(const OatMethodOffsets&) = default;
+
uint32_t code_offset_;
};
@@ -169,6 +171,8 @@
~OatQuickMethodHeader();
+ OatQuickMethodHeader& operator=(const OatQuickMethodHeader&) = default;
+
// The offset in bytes from the start of the mapping table to the end of the header.
uint32_t mapping_table_offset_;
// The offset in bytes from the start of the vmap table to the end of the header.