aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r--include/llvm/Module.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index 2bbf01a667..92f58699ca 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -183,6 +183,16 @@ public:
}
/// @}
+/// @name Generic Value Accessors
+/// @{
+
+ /// getNamedValue - Return the first global value in the module with
+ /// the specified name, of arbitrary type. This method returns null
+ /// if a global with the specified name is not found.
+ GlobalValue *getNamedValue(const std::string &Name) const;
+ GlobalValue *getNamedValue(const char *Name) const;
+
+/// @}
/// @name Function Accessors
/// @{
public: