diff options
| author | 2011-10-23 14:59:04 -0700 | |
|---|---|---|
| committer | 2011-10-25 00:03:03 -0700 | |
| commit | 6b4ef025af12b158d117fc80fc79acf620f411a0 (patch) | |
| tree | 223c580477cbb7bde240b599da4bbee793b8dcaf /src/utils.h | |
| parent | 21b9f1355f0311b5c67bfdfa9dd63cacb1fba502 (diff) | |
Make ResolveField not rely on Field::GetType resolution
Change-Id: I10f4a874809ac9db2cd54e200cf10eb7c8979fce
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h index 53a0378da1..66cda54323 100644 --- a/src/utils.h +++ b/src/utils.h @@ -5,6 +5,7 @@ #include "globals.h" #include "logging.h" +#include "primitive.h" #include "stringpiece.h" #include "stringprintf.h" @@ -156,6 +157,7 @@ static inline std::string PrintableString(const StringT& s) { // "java.lang.String[]", and so forth. std::string PrettyDescriptor(const String* descriptor); std::string PrettyDescriptor(const std::string& descriptor); +std::string PrettyDescriptor(Primitive::Type type); // Returns a human-readable signature for 'f'. Something like "a.b.C.f" or // "int a.b.C.f" (depending on the value of 'with_type'). |