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
This commit is contained in:
Daniel Dunbar
2009-03-06 22:04:43 +00:00
parent 3a56d14641
commit f56ec6423c
2 changed files with 31 additions and 19 deletions
+10
View File
@@ -182,6 +182,16 @@ public:
GlobalScopeAsm += '\n';
}
/// @}
/// @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
/// @{