summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2019-01-02 15:06:53 -0800
committer Andreas Gampe <agampe@google.com> 2019-01-03 09:19:10 -0800
commit436896cd020eee6de97b619a670832b0607c3f16 (patch)
tree7cc5cbafcfbe6f590cb3e9d816112815a3f00668
parent7458a7afdfe3046d962ea13dd0f6b176283505b2 (diff)
ART: Some IWYU for IterationRange
Remove unnecessary include. Forward-declare in common headers. Bug: 119869270 Test: mmma art Change-Id: I0a1403259ea3f1142548009deb6313dab0fed26f
-rw-r--r--libdexfile/dex/dex_file-inl.h1
-rw-r--r--libdexfile/dex/dex_file.h2
-rw-r--r--runtime/art_method.h1
-rw-r--r--runtime/mirror/class-inl.h1
-rw-r--r--runtime/mirror/class.h2
5 files changed, 4 insertions, 3 deletions
diff --git a/libdexfile/dex/dex_file-inl.h b/libdexfile/dex/dex_file-inl.h
index 9a720c2692..2af1e045e9 100644
--- a/libdexfile/dex/dex_file-inl.h
+++ b/libdexfile/dex/dex_file-inl.h
@@ -20,6 +20,7 @@
#include "dex_file.h"
#include "base/casts.h"
+#include "base/iteration_range.h"
#include "base/leb128.h"
#include "base/stringpiece.h"
#include "base/utils.h"
diff --git a/libdexfile/dex/dex_file.h b/libdexfile/dex/dex_file.h
index cf327804f2..a940a66d2c 100644
--- a/libdexfile/dex/dex_file.h
+++ b/libdexfile/dex/dex_file.h
@@ -24,7 +24,6 @@
#include <android-base/logging.h>
#include "base/globals.h"
-#include "base/iteration_range.h"
#include "base/macros.h"
#include "base/value_object.h"
#include "class_iterator.h"
@@ -40,6 +39,7 @@ class ClassDataItemIterator;
class CompactDexFile;
class DexInstructionIterator;
enum InvokeType : uint32_t;
+template <typename Iter> class IterationRange;
class MemMap;
class OatDexFile;
class StandardDexFile;
diff --git a/runtime/art_method.h b/runtime/art_method.h
index 70bcbc9831..aed9f62ccf 100644
--- a/runtime/art_method.h
+++ b/runtime/art_method.h
@@ -26,7 +26,6 @@
#include "base/bit_utils.h"
#include "base/casts.h"
#include "base/enums.h"
-#include "base/iteration_range.h"
#include "base/macros.h"
#include "base/runtime_debug.h"
#include "dex/code_item_accessors.h"
diff --git a/runtime/mirror/class-inl.h b/runtime/mirror/class-inl.h
index bdad412350..0f19bac526 100644
--- a/runtime/mirror/class-inl.h
+++ b/runtime/mirror/class-inl.h
@@ -22,6 +22,7 @@
#include "art_field.h"
#include "art_method.h"
#include "base/array_slice.h"
+#include "base/iteration_range.h"
#include "base/length_prefixed_array.h"
#include "base/utils.h"
#include "class_linker.h"
diff --git a/runtime/mirror/class.h b/runtime/mirror/class.h
index 8e392bcd77..5682def4c4 100644
--- a/runtime/mirror/class.h
+++ b/runtime/mirror/class.h
@@ -20,7 +20,6 @@
#include "base/bit_utils.h"
#include "base/casts.h"
#include "base/enums.h"
-#include "base/iteration_range.h"
#include "base/stride_iterator.h"
#include "class_flags.h"
#include "class_status.h"
@@ -43,6 +42,7 @@ struct ClassOffsets;
class DexFile;
template<class T> class Handle;
enum InvokeType : uint32_t;
+template <typename Iter> class IterationRange;
template<typename T> class LengthPrefixedArray;
template<typename T> class ArraySlice;
class Signature;