summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-07-21 01:11:12 +0000
committerAdam Nemet <anemet@apple.com>2016-07-21 01:11:12 +0000
commitcbe2a9b213d14708607d4e630724afc94de9c13d (patch)
tree369565382f0b0535d82228c867eeb3298141e6d4 /llvm
parent7cfd5971ab09bde7ec4f14e1f995414380ea4179 (diff)
downloadbcm5719-llvm-cbe2a9b213d14708607d4e630724afc94de9c13d.tar.gz
bcm5719-llvm-cbe2a9b213d14708607d4e630724afc94de9c13d.zip
[OptDiag] Missed these when making the IR Value a const pointer
llvm-svn: 276224
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h7
-rw-r--r--llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp6
2 files changed, 8 insertions, 5 deletions
diff --git a/llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h b/llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h
index 65ca2921615..cee8bfb990a 100644
--- a/llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h
+++ b/llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h
@@ -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.
diff --git a/llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp b/llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp
index e658755aa1e..94c796d4898 100644
--- a/llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp
+++ b/llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp
@@ -70,14 +70,16 @@ void OptimizationRemarkEmitter::emitOptimizationRemarkAnalysis(
}
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)));
OpenPOWER on IntegriCloud