[llvm] r276224 - [OptDiag] Missed these when making the IR Value a const pointer

Adam Nemet via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 18:11:13 PDT 2016


Author: anemet
Date: Wed Jul 20 20:11:12 2016
New Revision: 276224

URL: http://llvm.org/viewvc/llvm-project?rev=276224&view=rev
Log:
[OptDiag] Missed these when making the IR Value a const pointer

Modified:
    llvm/trunk/include/llvm/Analysis/OptimizationDiagnosticInfo.h
    llvm/trunk/lib/Analysis/OptimizationDiagnosticInfo.cpp

Modified: llvm/trunk/include/llvm/Analysis/OptimizationDiagnosticInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/OptimizationDiagnosticInfo.h?rev=276224&r1=276223&r2=276224&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/OptimizationDiagnosticInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/OptimizationDiagnosticInfo.h Wed Jul 20 20:11:12 2016
@@ -99,7 +99,8 @@ public:
   /// is generated.\p V is the IR Value that identifies the code region.  \p Msg
   /// is the message string to use.
   void emitOptimizationRemarkAnalysisFPCommute(const char *PassName,
-                                               const DebugLoc &DLoc, Value *V,
+                                               const DebugLoc &DLoc,
+                                               const Value *V,
                                                const Twine &Msg);
 
   /// \brief Emit an optimization analysis remark related to pointer aliasing.
@@ -111,8 +112,8 @@ public:
   /// is generated.\p V is the IR Value that identifies the code region.  \p Msg
   /// is the message string to use.
   void emitOptimizationRemarkAnalysisAliasing(const char *PassName,
-                                              const DebugLoc &DLoc, Value *V,
-                                              const Twine &Msg);
+                                              const DebugLoc &DLoc,
+                                              const Value *V, const Twine &Msg);
 
   /// \brief Same as above but derives the IR Value for the code region and the
   /// debug location from the Loop parameter \p L.

Modified: llvm/trunk/lib/Analysis/OptimizationDiagnosticInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/OptimizationDiagnosticInfo.cpp?rev=276224&r1=276223&r2=276224&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/OptimizationDiagnosticInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/OptimizationDiagnosticInfo.cpp Wed Jul 20 20:11:12 2016
@@ -70,14 +70,16 @@ void OptimizationRemarkEmitter::emitOpti
 }
 
 void OptimizationRemarkEmitter::emitOptimizationRemarkAnalysisFPCommute(
-    const char *PassName, const DebugLoc &DLoc, Value *V, const Twine &Msg) {
+    const char *PassName, const DebugLoc &DLoc, const Value *V,
+    const Twine &Msg) {
   LLVMContext &Ctx = F->getContext();
   Ctx.diagnose(DiagnosticInfoOptimizationRemarkAnalysisFPCommute(
       PassName, *F, DLoc, Msg, computeHotness(V)));
 }
 
 void OptimizationRemarkEmitter::emitOptimizationRemarkAnalysisAliasing(
-    const char *PassName, const DebugLoc &DLoc, Value *V, const Twine &Msg) {
+    const char *PassName, const DebugLoc &DLoc, const Value *V,
+    const Twine &Msg) {
   LLVMContext &Ctx = F->getContext();
   Ctx.diagnose(DiagnosticInfoOptimizationRemarkAnalysisAliasing(
       PassName, *F, DLoc, Msg, computeHotness(V)));




More information about the llvm-commits mailing list