aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2020-10-18 14:11:41 +0200
committerMark de Wever <koraq@xs4all.nl>2020-10-18 18:50:21 +0200
commit389c8d5b20a2ddea84d3b24edd533d5283f96582 (patch)
treed1ec1fc4bf4d200f149a8ea9c68bd83abae21eab /clang/lib/CodeGen/CodeGenFunction.h
parent126094485ab99dac3e6df9c201124d48a1d798ce (diff)
downloadllvm-389c8d5b20a2ddea84d3b24edd533d5283f96582.zip
llvm-389c8d5b20a2ddea84d3b24edd533d5283f96582.tar.gz
llvm-389c8d5b20a2ddea84d3b24edd533d5283f96582.tar.bz2
[NFC] Make non-modifying members const.
Implementing the likelihood attributes for the iteration statements adds a new helper function. This function can't be const qualified since these non-modifying members aren't const qualified.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 0a199e9..441e2c9 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -1401,10 +1401,11 @@ private:
CodeGenPGO PGO;
/// Calculate branch weights appropriate for PGO data
- llvm::MDNode *createProfileWeights(uint64_t TrueCount, uint64_t FalseCount);
- llvm::MDNode *createProfileWeights(ArrayRef<uint64_t> Weights);
+ llvm::MDNode *createProfileWeights(uint64_t TrueCount,
+ uint64_t FalseCount) const;
+ llvm::MDNode *createProfileWeights(ArrayRef<uint64_t> Weights) const;
llvm::MDNode *createProfileWeightsForLoop(const Stmt *Cond,
- uint64_t LoopCount);
+ uint64_t LoopCount) const;
public:
/// Increment the profiler's counter for the given statement by \p StepV.