diff options
Diffstat (limited to 'src/utils.cc')
| -rw-r--r-- | src/utils.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils.cc b/src/utils.cc index 71a7ebfc79..d038f6d814 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -277,6 +277,14 @@ std::string PrettyField(uint32_t field_idx, const DexFile& dex_file, bool with_t return result; } +std::string PrettyType(uint32_t type_idx, const DexFile& dex_file) { + const DexFile::TypeId& type_id = dex_file.GetTypeId(type_idx); + std::string result; + result += PrettyDescriptor(dex_file.GetTypeDescriptor(type_id)); + result += ' '; + return result; +} + std::string PrettyArguments(const char* signature) { std::string result; result += '('; |