[PM] Function-level TLI is also immutable.
authorSean Silva <chisophugis@gmail.com>
Mon, 8 Aug 2016 05:37:58 +0000 (05:37 +0000)
committerSean Silva <chisophugis@gmail.com>
Mon, 8 Aug 2016 05:37:58 +0000 (05:37 +0000)
llvm-svn: 277979

llvm/include/llvm/Analysis/TargetLibraryInfo.h

index 2cbf6f7..deed2d0 100644 (file)
@@ -273,6 +273,7 @@ public:
   /// If we try to invalidate this info, just return false. It cannot become
   /// invalid even if the module changes.
   bool invalidate(Module &, const PreservedAnalyses &) { return false; }
+  bool invalidate(Function &, const PreservedAnalyses &) { return false; }
 };
 
 /// Analysis pass providing the \c TargetLibraryInfo.