diff options
author | 2016-10-19 16:18:50 +0000 | |
---|---|---|
committer | 2016-10-19 16:18:51 +0000 | |
commit | c89f9776a107ca20d0146c16fa881db91c4f8266 (patch) | |
tree | f77bd4525e69c4874c52183878ae642fd5a2201c /runtime/method_reference.h | |
parent | 58b99c78d0bba093fddebab0dcad45bbcf5c55d9 (diff) | |
parent | 709b070044354d9f47641f273edacaeeb0240ab7 (diff) |
Merge "Remove mirror:: and ArtMethod deps in utils.{h,cc}"
Diffstat (limited to 'runtime/method_reference.h')
-rw-r--r-- | runtime/method_reference.h | 7 |
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; }; |