Add a way to dump a ClangASTType to stdout for debugging purposes.

llvm-svn: 178071
This commit is contained in:
Greg Clayton 2013-03-26 21:01:37 +00:00
parent ba752b9bfd
commit 365fe21947
2 changed files with 10 additions and 0 deletions

View File

@ -203,6 +203,9 @@ public:
lldb::offset_t data_offset,
size_t data_byte_size);
void
DumpTypeDescription (); // Dump to stdout
void
DumpTypeDescription (Stream *s);

View File

@ -1309,6 +1309,13 @@ ClangASTType::IsConst (lldb::clang_type_t clang_type)
return qual_type.isConstQualified();
}
void
ClangASTType::DumpTypeDescription ()
{
StreamFile s (stdout, false);
DumpTypeDescription (&s);
}
void
ClangASTType::DumpTypeDescription (Stream *s)
{