diff options
| author | Kyle Butt <kyle+llvm@iteratee.net> | 2016-07-27 20:19:31 +0000 |
|---|---|---|
| committer | Kyle Butt <kyle+llvm@iteratee.net> | 2016-07-27 20:19:31 +0000 |
| commit | 59f2a2a4414a39fa267b0ccfb24284565c02be94 (patch) | |
| tree | e475f70b47978be008493edf14d17678de4758c9 /llvm/lib/CodeGen | |
| parent | 7a2c40cb6662bd5b8b085de5b8f390d3d6175d9c (diff) | |
| download | bcm5719-llvm-59f2a2a4414a39fa267b0ccfb24284565c02be94.tar.gz bcm5719-llvm-59f2a2a4414a39fa267b0ccfb24284565c02be94.zip | |
Codegen: IfConversion: add const qualifier. NFC
Add a const qualifier to ReverseBranchCondition.
llvm-svn: 276909
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/IfConversion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp index d225162860c..c2648f69307 100644 --- a/llvm/lib/CodeGen/IfConversion.cpp +++ b/llvm/lib/CodeGen/IfConversion.cpp @@ -195,7 +195,7 @@ namespace { } private: - bool ReverseBranchCondition(BBInfo &BBI); + bool ReverseBranchCondition(BBInfo &BBI) const; bool ValidSimple(BBInfo &TrueBBI, unsigned &Dups, BranchProbability Prediction) const; bool ValidTriangle(BBInfo &TrueBBI, BBInfo &FalseBBI, @@ -450,7 +450,7 @@ static MachineBasicBlock *findFalseBlock(MachineBasicBlock *BB, /// ReverseBranchCondition - Reverse the condition of the end of the block /// branch. Swap block's 'true' and 'false' successors. -bool IfConverter::ReverseBranchCondition(BBInfo &BBI) { +bool IfConverter::ReverseBranchCondition(BBInfo &BBI) const { DebugLoc dl; // FIXME: this is nowhere if (!TII->ReverseBranchCondition(BBI.BrCond)) { TII->RemoveBranch(*BBI.BB); |

