summaryrefslogtreecommitdiff
path: root/runtime/method_reference.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/method_reference.h')
-rw-r--r--runtime/method_reference.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/method_reference.h b/runtime/method_reference.h
index f4fe9b20bd..0b0afe64a6 100644
--- a/runtime/method_reference.h
+++ b/runtime/method_reference.h
@@ -18,15 +18,18 @@
#define ART_RUNTIME_METHOD_REFERENCE_H_
#include <stdint.h>
+#include <string>
+#include "dex_file.h"
namespace art {
-class DexFile;
-
// A method is uniquely located by its DexFile and the method_ids_ table index into that DexFile
struct MethodReference {
MethodReference(const DexFile* file, uint32_t index) : dex_file(file), dex_method_index(index) {
}
+ std::string PrettyMethod(bool with_signature = true) {
+ return dex_file->PrettyMethod(dex_method_index, with_signature);
+ }
const DexFile* dex_file;
uint32_t dex_method_index;
};