* 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
This commit is contained in:
Chris Lattner
2003-12-31 07:09:33 +00:00
parent 69284b03d1
commit 6d28a268c3
2 changed files with 28 additions and 17 deletions

View File

@ -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; }