mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Make these methods const correct.
Thanks to Nick Lewycky for noticing it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187098 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -233,8 +233,7 @@ Function *Module::getFunction(StringRef Name) const {
|
||||
/// If AllowLocal is set to true, this function will return types that
|
||||
/// have an local. By default, these types are not returned.
|
||||
///
|
||||
GlobalVariable *Module::getGlobalVariable(StringRef Name,
|
||||
bool AllowLocal) const {
|
||||
GlobalVariable *Module::getGlobalVariable(StringRef Name, bool AllowLocal) {
|
||||
if (GlobalVariable *Result =
|
||||
dyn_cast_or_null<GlobalVariable>(getNamedValue(Name)))
|
||||
if (AllowLocal || !Result->hasLocalLinkage())
|
||||
|
Reference in New Issue
Block a user