Simplify ClassLinker::LoadClass
Starting out by removing the ClassLinker::LoadClass to not take a
DexFile. Then started pulling threads so that ClassLinker::LoadClass
could take a StringPiece instead of const char*. Finally went through
and removed all uses of StringPiece::data() to make sure things are
clean.
Change-Id: I47cfa0e8e0e35a31e0ebbd0f7d6a105be83ebe88
diff --git a/src/dex_file.h b/src/dex_file.h
index d11b3b5..911d3ea 100644
--- a/src/dex_file.h
+++ b/src/dex_file.h
@@ -40,7 +40,7 @@
return num_methods_;
}
- bool HasClass(const char* descriptor) {
+ bool HasClass(const StringPiece& descriptor) {
return raw_->FindClassDef(descriptor) != NULL;
}