From 2ef01100bb56b3f8ab5fbc886a7066d721290d74 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Tue, 5 Feb 2019 15:05:10 +0000 Subject: Replace StringPiece with std::string_view in HashSet. Update HashSet comment and related code. Also remove dead CompilerOptions declarations with StringPiece parameters. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 123750182 Change-Id: I4a39d0e8e0392a414129369c5b304ec4813e9ed5 --- compiler/driver/compiler_options.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/driver/compiler_options.cc') diff --git a/compiler/driver/compiler_options.cc b/compiler/driver/compiler_options.cc index 8d1ae3d524..7dd743f533 100644 --- a/compiler/driver/compiler_options.cc +++ b/compiler/driver/compiler_options.cc @@ -17,6 +17,7 @@ #include "compiler_options.h" #include +#include #include "android-base/stringprintf.h" @@ -144,7 +145,7 @@ bool CompilerOptions::IsImageClass(const char* descriptor) const { // Historical note: We used to hold the set indirectly and there was a distinction between an // empty set and a null, null meaning to include all classes. However, the distiction has been // removed; if we don't have a profile, we treat it as an empty set of classes. b/77340429 - return image_classes_.find(StringPiece(descriptor)) != image_classes_.end(); + return image_classes_.find(std::string_view(descriptor)) != image_classes_.end(); } const VerificationResults* CompilerOptions::GetVerificationResults() const { -- cgit v1.2.3-59-g8ed1b