diff options
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index d5bef07ca9..d32f963acb 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -810,6 +810,17 @@ void QualType::dump(const char *msg) const { else fprintf(stderr, "%s\n", R.c_str()); } +void QualType::dump() const { + dump(""); +} + +void Type::dump() const { + std::string S = "identifier"; + getAsStringInternal(S); + fprintf(stderr, "%s\n", S.c_str()); +} + + static void AppendTypeQualList(std::string &S, unsigned TypeQuals) { // Note: funkiness to ensure we get a space only between quals. |