[llvm] r255903 - Mark a couple ModuleLinker member functions as const (NFC)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 17 08:34:53 PST 2015
Author: tejohnson
Date: Thu Dec 17 10:34:53 2015
New Revision: 255903
URL: http://llvm.org/viewvc/llvm-project?rev=255903&view=rev
Log:
Mark a couple ModuleLinker member functions as const (NFC)
Modified:
llvm/trunk/lib/Linker/LinkModules.cpp
Modified: llvm/trunk/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=255903&r1=255902&r2=255903&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Thu Dec 17 10:34:53 2015
@@ -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.
More information about the llvm-commits
mailing list