Add a new Module::getNamedFunction method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4758 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2002-11-19 18:41:44 +00:00
parent af43b64d12
commit 9a641b4bce
2 changed files with 18 additions and 3 deletions

View File

@ -86,6 +86,12 @@ public:
///
Function *getMainFunction();
/// getNamedFunction - Return the first function in the module with the
/// specified name, of arbitrary type. This method returns null if a function
/// with the specified name is not found.
///
Function *getNamedFunction(const std::string &Name);
/// addTypeName - Insert an entry in the symbol table mapping Str to Type. If
/// there is already an entry for this name, true is returned and the symbol
/// table is not modified.