Mark a couple ModuleLinker member functions as const (NFC)
[oota-llvm.git] / lib / Linker / LinkModules.cpp
index 1a10796a6050c976f33cd1c3690cf1bdc1430506..9c9c0ef321f5f8e5449d8a67f75497dd049e63a0 100644 (file)
@@ -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.