aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Module.h6
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; }