Add const qualifier on FunctionInfoIndex::hasExportedFunctions() (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Mon, 23 Nov 2015 01:59:12 +0000 (01:59 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Mon, 23 Nov 2015 01:59:12 +0000 (01:59 +0000)
From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253839 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/FunctionInfo.h

index 55f9ed88f1cd67240e2470dfceb1189bf702d557..3749212c9bead61cd6b3bac14e18fdfbc2084bc7 100644 (file)
@@ -244,7 +244,7 @@ public:
 
   /// Check if the given Module has any functions available for exporting
   /// in the index.
-  bool hasExportedFunctions(const Module *M) {
+  bool hasExportedFunctions(const Module *M) const {
     assert(M == ExportingModule &&
            "Checking for exported functions on unexpected module");
     return HasExportedFunctions;