[llvm-commits] CVS: llvm/include/llvm/Module.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Dec 31 01:10:01 PST 2003
Changes in directory llvm/include/llvm:
Module.h updated: 1.38 -> 1.39
---
Log message:
* Make Module::getTypeName const
* Add new Module::getTypeByName method
* Group methods in Module.cpp better
---
Diffs of the changes: (+5 -1)
Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.38 llvm/include/llvm/Module.h:1.39
--- llvm/include/llvm/Module.h:1.38 Tue Nov 11 16:41:30 2003
+++ llvm/include/llvm/Module.h Wed Dec 31 01:09:33 2003
@@ -132,7 +132,11 @@
/// 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; }
More information about the llvm-commits
mailing list