From: Teresa Johnson Date: Thu, 17 Dec 2015 16:34:53 +0000 (+0000) Subject: Mark a couple ModuleLinker member functions as const (NFC) X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8b43ff7efa946af3d2f148c8389b406587e203c;p=oota-llvm.git Mark a couple ModuleLinker member functions as const (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255903 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 1a10796a605..9c9c0ef321f 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -113,8 +113,8 @@ class ModuleLinker { /// Helper methods to check if we are importing from or potentially /// exporting from the current source module. - bool isPerformingImport() { return ImportFunction != nullptr; } - bool isModuleExporting() { return HasExportedFunctions; } + bool isPerformingImport() const { return ImportFunction != nullptr; } + bool isModuleExporting() const { return HasExportedFunctions; } /// If we are importing from the source module, checks if we should /// import SGV as a definition, otherwise import as a declaration.