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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index 18b081abc7..8e8f554abe 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