summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-07-20 21:44:22 +0000
committerAdam Nemet <anemet@apple.com>2016-07-20 21:44:22 +0000
commit6100d16e7d63b377038a1da54bc25c66779bdafc (patch)
tree146631d6238fc4a8fcf4cc50886c614b2a88f376 /llvm/include
parent78d1091c918ae8493d70e955d444a5c52c6963b5 (diff)
downloadbcm5719-llvm-6100d16e7d63b377038a1da54bc25c66779bdafc.tar.gz
bcm5719-llvm-6100d16e7d63b377038a1da54bc25c66779bdafc.zip
[OptDiag] Take the IR Value as a const pointer
This helps because LoopAccessReport is passed around as a const reference and we derive the basic block passed as the Value parameter from the instruction in LoopAccessReport. llvm-svn: 276191
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h b/llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h
index 4881751cfca..71d989b45b3 100644
--- a/llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h
+++ b/llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h
@@ -51,7 +51,7 @@ public:
/// where the diagnostic is generated. \p V is the IR Value that identifies
/// the code region. \p Msg is the message string to use.
void emitOptimizationRemarkMissed(const char *PassName, const DebugLoc &DLoc,
- Value *V, const Twine &Msg);
+ 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.
@@ -63,7 +63,7 @@ private:
BlockFrequencyInfo *BFI;
- Optional<uint64_t> computeHotness(Value *V);
+ Optional<uint64_t> computeHotness(const Value *V);
OptimizationRemarkEmitter(const OptimizationRemarkEmitter &) = delete;
void operator=(const OptimizationRemarkEmitter &) = delete;
OpenPOWER on IntegriCloud