summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2010-03-25 13:19:42 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2010-03-25 13:19:42 +0000
commitd9ab76bbce7b8a563aa847cfcdcd39d8280f11bd (patch)
treed989f67314b6a0f305841a32abecc448c632ffda /include
parent93ba8579c341d5329175f1413cdc3b35a36592d2 (diff)
downloadclang-d9ab76bbce7b8a563aa847cfcdcd39d8280f11bd.tar.gz
clang-d9ab76bbce7b8a563aa847cfcdcd39d8280f11bd.tar.bz2
clang-d9ab76bbce7b8a563aa847cfcdcd39d8280f11bd.tar.xz
add dump() method to CanQual for debugging purposes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/AST/CanonicalType.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/AST/CanonicalType.h b/include/clang/AST/CanonicalType.h
index 1f459b08ca..f4cccf3511 100644
--- a/include/clang/AST/CanonicalType.h
+++ b/include/clang/AST/CanonicalType.h
@@ -165,6 +165,8 @@ public:
// (dynamic) type.
static CanQual<T> CreateUnsafe(QualType Other);
+ void dump() const { Stored.dump(); }
+
void Profile(llvm::FoldingSetNodeID &ID) const {
ID.AddPointer(getAsOpaquePtr());
}