[llvm-commits] CVS: llvm/include/llvm/Module.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 8 10:39:04 PST 2006
Changes in directory llvm/include/llvm:
Module.h updated: 1.69 -> 1.70
---
Log message:
add a new helper method
---
Diffs of the changes: (+6 -0)
Module.h | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.69 llvm/include/llvm/Module.h:1.70
--- llvm/include/llvm/Module.h:1.69 Wed Jan 25 12:55:37 2006
+++ llvm/include/llvm/Module.h Wed Mar 8 12:38:51 2006
@@ -148,6 +148,12 @@
GlobalVariable *getGlobalVariable(const std::string &Name, const Type *Ty,
bool AllowInternal = false);
+ /// getNamedGlobal - Return the first global variable in the module with the
+ /// specified name, of arbitrary type. This method returns null if a global
+ /// with the specified name is not found.
+ ///
+ GlobalVariable *getNamedGlobal(const std::string &Name);
+
//===--------------------------------------------------------------------===//
// Methods for easy access to the types in the module.
More information about the llvm-commits
mailing list