diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-27 00:48:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-27 00:48:22 +0000 |
commit | c36d405a02fab41f6c45cb2bc750d64949742903 (patch) | |
tree | 4b413e13b84dffe504ca596993270a6aea805a9c /include/clang/AST/Type.h | |
parent | 4243a94b43ef6207938f3023dfcfb804dd545363 (diff) |
make "call foo.dump()" and "call foo->dump()" work in GDB,
with QualTypes and Types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/Type.h')
-rw-r--r-- | include/clang/AST/Type.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 40d550a0ac..952a5dd9ba 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -161,7 +161,8 @@ public: } void getAsStringInternal(std::string &Str) const; - void dump(const char *s = 0) const; + void dump(const char *s) const; + void dump() const; void Profile(llvm::FoldingSetNodeID &ID) const { ID.AddPointer(getAsOpaquePtr()); @@ -394,6 +395,7 @@ private: QualType getCanonicalTypeInternal() const { return CanonicalType; } friend class QualType; public: + void dump() const; virtual void getAsStringInternal(std::string &InnerString) const = 0; static bool classof(const Type *) { return true; } |