summaryrefslogtreecommitdiff
path: root/simpleperf/dso.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2020-12-09 16:27:57 -0800
committerYabin Cui <yabinc@google.com>2020-12-11 13:56:24 -0800
commitac4b249ecf3887a1b258b95a54754389b4ec8b79 (patch)
tree4490728f66db3df2bb656184be5bbae04c130cd0 /simpleperf/dso.cpp
parentcae896b243eeb852b57c778e95b7ef5fae65d403 (diff)
downloadextras-ac4b249ecf3887a1b258b95a54754389b4ec8b79.tar.gz
simpleperf: extract common code into report_utils.cpp
Extract common code in cmd_report_sample.cpp and report_lib_interface.cpp, into report_utils.cpp. Bug: 175163225 Test: run simpleperf_unit_test. Test: run test.py TestReportLibs*. Change-Id: Ic64956cd1a73ef3165337aa3509a15d14e095959
Diffstat (limited to 'simpleperf/dso.cpp')
-rw-r--r--simpleperf/dso.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/dso.cpp b/simpleperf/dso.cpp
index 1fe8a0d1..07ef5a82 100644
--- a/simpleperf/dso.cpp
+++ b/simpleperf/dso.cpp
@@ -383,7 +383,7 @@ void Dso::AddUnknownSymbol(uint64_t vaddr_in_dso, const std::string& name) {
unknown_symbols_.insert(std::make_pair(vaddr_in_dso, Symbol(name, vaddr_in_dso, 1)));
}
-bool Dso::IsForJavaMethod() {
+bool Dso::IsForJavaMethod() const {
if (type_ == DSO_DEX_FILE) {
return true;
}