[OptDiag] Missed these when making the IR Value a const pointer
llvm-svn: 276224
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user