aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-13 18:58:33 +0000
committerChris Lattner <sabre@nondot.org>2002-04-13 18:58:33 +0000
commitf33fa6fb57b9c41e99739eff79b7f185e0df9500 (patch)
treefd969d67c1b2afebb127ed8a914c02a545b2be06 /include/llvm/Module.h
parent3e5fe173bb6bcaaacc54d9fd4f71767eb3e3298e (diff)
downloadexternal_llvm-f33fa6fb57b9c41e99739eff79b7f185e0df9500.zip
external_llvm-f33fa6fb57b9c41e99739eff79b7f185e0df9500.tar.gz
external_llvm-f33fa6fb57b9c41e99739eff79b7f185e0df9500.tar.bz2
Add Module::getTypeName
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r--include/llvm/Module.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index d94500a..cd15178 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -69,6 +69,11 @@ public:
//
bool addTypeName(const std::string &Name, const Type *Ty);
+ // getTypeName - If there is at least one entry in the symbol table for the
+ // specified type, return it.
+ //
+ std::string getTypeName(const Type *Ty);
+
// Get the underlying elements of the Module...
inline const GlobalListType &getGlobalList() const { return GlobalList; }
inline GlobalListType &getGlobalList() { return GlobalList; }