summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2022-01-17 09:17:23 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2022-01-17 12:08:48 +0000
commitee7bd3293c93f812f3403325f621ed73ad607ae4 (patch)
treec6e1fb92b4e75ccd308b86d21412a3aea8a3bf39 /compiler/driver/compiler_options.h
parent3d2f148fe040b60452d5d9be7d08dec693132078 (diff)
Revert "Expand sharpening's ComputeLoadClassKind to cover cross-dex cases"
This reverts commit 32b8c8f33ad68982357c1fa3d0f132d06b070ab5. Bug: 154012332 Bug: 214850438 Reason for revert: b/214850438 Change-Id: I479c0910ce5da593e170bc5e4f6fa10dfe5d67b2
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r--compiler/driver/compiler_options.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h
index 326e833191..a31be3f640 100644
--- a/compiler/driver/compiler_options.h
+++ b/compiler/driver/compiler_options.h
@@ -26,7 +26,6 @@
#include "base/globals.h"
#include "base/hash_set.h"
#include "base/macros.h"
-#include "base/stl_util.h"
#include "base/utils.h"
#include "optimizing/register_allocator.h"
@@ -375,7 +374,8 @@ class CompilerOptions final {
}
bool WithinOatFile(const DexFile* dex_file) const {
- return ContainsElement(GetDexFilesForOatFile(), dex_file);
+ return std::find(GetDexFilesForOatFile().begin(), GetDexFilesForOatFile().end(), dex_file) !=
+ GetDexFilesForOatFile().end();
}
private: