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

Chris Lattner lattner at cs.uiuc.edu
Sat Aug 30 19:20:08 PDT 2003


Changes in directory llvm/include/llvm:

Module.h updated: 1.33 -> 1.34

---
Log message:

Add new helper function which makes it even easier to do this sort of thing


---
Diffs of the changes:

Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.33 llvm/include/llvm/Module.h:1.34
--- llvm/include/llvm/Module.h:1.33	Sun Aug 24 08:46:37 2003
+++ llvm/include/llvm/Module.h	Sat Aug 30 19:19:18 2003
@@ -90,6 +90,12 @@
   /// it.
   Function *getOrInsertFunction(const std::string &Name, const FunctionType *T);
 
+  /// getOrInsertFunction - Look up the specified function in the module symbol
+  /// table.  If it does not exist, add a prototype for the function and return
+  /// it.  This version of the method takes a null terminated list of function
+  /// arguments, which makes it easier for clients to use.
+  Function *getOrInsertFunction(const std::string &Name, const Type *RetTy,...);
+
   /// getFunction - Look up the specified function in the module symbol table.
   /// If it does not exist, return null.
   ///





More information about the llvm-commits mailing list