mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
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
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user