diff options
author | Chris Lattner <sabre@nondot.org> | 2003-12-31 07:09:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-12-31 07:09:33 +0000 |
commit | 6d28a268c32860e76efc85cd2ab59176601b23c6 (patch) | |
tree | 5c06cbdb6b2e5d2e463b7e72bf2454cc5d18b6a8 /include | |
parent | 69284b03d1dc7ebdc2ce22f65afe5ef04cc01cf4 (diff) | |
download | external_llvm-6d28a268c32860e76efc85cd2ab59176601b23c6.zip external_llvm-6d28a268c32860e76efc85cd2ab59176601b23c6.tar.gz external_llvm-6d28a268c32860e76efc85cd2ab59176601b23c6.tar.bz2 |
* Make Module::getTypeName const
* Add new Module::getTypeByName method
* Group methods in Module.cpp better
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Module.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h index b38269d..2e448e6 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -132,7 +132,11 @@ public: /// getTypeName - If there is at least one entry in the symbol table for the /// specified type, return it. /// - std::string getTypeName(const Type *Ty); + std::string getTypeName(const Type *Ty) const; + + /// getTypeByName - Return the type with the specified name in this module, or + /// null if there is none by that name. + const Type *getTypeByName(const std::string &Name) const; /// Get the underlying elements of the Module... inline const GlobalListType &getGlobalList() const { return GlobalList; } |