aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-19 18:41:44 +0000
committerChris Lattner <sabre@nondot.org>2002-11-19 18:41:44 +0000
commit9a641b4bce58f9aaea469f78a3e1d91866622fee (patch)
tree38edfc73e59e95a7ca63177f3b75cd3d4a31f8d8 /include/llvm/Module.h
parentaf43b64d12b089b41ca691e2a30c0bde2bbab97e (diff)
downloadexternal_llvm-9a641b4bce58f9aaea469f78a3e1d91866622fee.zip
external_llvm-9a641b4bce58f9aaea469f78a3e1d91866622fee.tar.gz
external_llvm-9a641b4bce58f9aaea469f78a3e1d91866622fee.tar.bz2
Add a new Module::getNamedFunction method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r--include/llvm/Module.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index 6f7a14f..4d2edce 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -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.