summaryrefslogtreecommitdiffstats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-04-03 21:28:42 -0700
committerAndreas Gampe <agampe@google.com>2015-04-06 14:03:17 -0700
commit758a801b66c134361a7b43f7e83f85d1fb800c4c (patch)
tree35b060c780fcf6e7c268fec47df40c74b5ab8b05 /compiler
parente8aae00fa400efbb8f998a5dbf68eb42810889c1 (diff)
downloadart-758a801b66c134361a7b43f7e83f85d1fb800c4c.tar.gz
art-758a801b66c134361a7b43f7e83f85d1fb800c4c.tar.bz2
art-758a801b66c134361a7b43f7e83f85d1fb800c4c.zip
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
Diffstat (limited to 'compiler')
-rw-r--r--compiler/elf_builder.h2
-rw-r--r--compiler/utils/array_ref.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/compiler/elf_builder.h b/compiler/elf_builder.h
index 9ab360260..124ed03c2 100644
--- a/compiler/elf_builder.h
+++ b/compiler/elf_builder.h
@@ -40,6 +40,7 @@ class ElfSectionBuilder : public ValueObject {
section_.sh_addralign = align;
section_.sh_entsize = entsize;
}
+ ElfSectionBuilder(const ElfSectionBuilder&) = default;
~ElfSectionBuilder() {}
@@ -144,6 +145,7 @@ class ElfRawSectionBuilder FINAL : public ElfSectionBuilder<Elf_Word, Elf_Sword,
: ElfSectionBuilder<Elf_Word, Elf_Sword, Elf_Shdr>(sec_name, type, flags, link, info, align,
entsize) {
}
+ ElfRawSectionBuilder(const ElfRawSectionBuilder&) = default;
~ElfRawSectionBuilder() {}
diff --git a/compiler/utils/array_ref.h b/compiler/utils/array_ref.h
index b1b0ee5e5..ff5a77c97 100644
--- a/compiler/utils/array_ref.h
+++ b/compiler/utils/array_ref.h
@@ -89,6 +89,8 @@ class ArrayRef {
: array_(v.data()), size_(v.size()) {
}
+ ArrayRef(const ArrayRef&) = default;
+
// Assignment operators.
ArrayRef& operator=(const ArrayRef& other) {