aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-06 22:04:43 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-06 22:04:43 +0000
commitf56ec6423cc8116136cfef314b9f3a519e37d3f9 (patch)
tree751ab43bd47b0e4ef4dc835ec6f30b124720a87e /include/llvm/Module.h
parent3a56d146413ee344b10bbcb2b7d8dffaadc9fade (diff)
Add Module::getNamedValue; use to normalize access to Module symbol
table. - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66289 91177308-0d34-0410-b5e6-96231b3b80d8
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: