diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-05-31 16:40:28 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-05-31 16:40:28 +0000 |
commit | 0b2375edfe6b32f361b3fe19c5c26bddc041fabb (patch) | |
tree | 7351934b047cb721d6d3d5645f3a2e46190674e2 /include/llvm | |
parent | e2e83c99947eef71d0c2d2877a2a3f58f54a58d9 (diff) | |
download | external_llvm-0b2375edfe6b32f361b3fe19c5c26bddc041fabb.zip external_llvm-0b2375edfe6b32f361b3fe19c5c26bddc041fabb.tar.gz external_llvm-0b2375edfe6b32f361b3fe19c5c26bddc041fabb.tar.bz2 |
Make the getNamedFunction and getNamedGlobal methods be const. They don't
change the module in any way and we should enforce that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Module.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h index 18b081a..8e8f554 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -179,7 +179,7 @@ public: /// getNamedFunction - Return the first function in the module with the /// specified name, of arbitrary type. This method returns null if a function /// with the specified name is not found. - Function *getNamedFunction(const std::string &Name); + Function *getNamedFunction(const std::string &Name) const; /// @} /// @name Global Variable Accessors @@ -197,7 +197,7 @@ public: /// 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); + GlobalVariable *getNamedGlobal(const std::string &Name) const; /// @} /// @name Type Accessors |