diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-01 20:16:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-01 20:16:19 +0000 |
commit | 795daece23cdc66bc7c16e9a2043dd4a4d0bbfc0 (patch) | |
tree | d1956483d69c715b6a157a4731ff6326a31d9674 /include/llvm/Type.h | |
parent | aeaf245db33fa8bccdd14bb8899ee0585a75a7b1 (diff) |
add a new form of Type::dump that takes a module for type names,
patch provided by Tomas Lindquist Olsen!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r-- | include/llvm/Type.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index 1f271957df..b8f65582ba 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -26,6 +26,7 @@ class PointerType; class IntegerType; class TypeMapBase; class raw_ostream; +class Module; /// This file contains the declaration of the Type class. For more "Type" type /// stuff, look in DerivedTypes.h. @@ -162,6 +163,10 @@ public: /// @brief Debugging support: print to stderr void dump() const; + /// @brief Debugging support: print to stderr (use type names from context + /// module). + void dump(const Module *Context) const; + //===--------------------------------------------------------------------===// // Property accessors for dealing with types... Some of these virtual methods // are defined in private classes defined in Type.cpp for primitive types. |