[llvm-commits] CVS: llvm/include/llvm/Module.h

Chris Lattner lattner at cs.uiuc.edu
Tue Nov 19 12:42:01 PST 2002


Changes in directory llvm/include/llvm:

Module.h updated: 1.28 -> 1.29

---
Log message:

Add a new Module::getNamedFunction method


---
Diffs of the changes:

Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.28 llvm/include/llvm/Module.h:1.29
--- llvm/include/llvm/Module.h:1.28	Fri Nov  8 14:34:00 2002
+++ llvm/include/llvm/Module.h	Tue Nov 19 12:41:43 2002
@@ -86,6 +86,12 @@
   ///
   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.





More information about the llvm-commits mailing list