mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Make helper functions static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160173 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1550,7 +1550,7 @@ static APInt MultiplyAndLosePrecision(APInt &A, APInt &B, APInt &C, APInt &D,
|
||||
/// checkCSEInPredecessor - Return true if the given instruction is available
|
||||
/// in its predecessor block. If yes, the instruction will be removed.
|
||||
///
|
||||
bool checkCSEInPredecessor(Instruction *Inst, BasicBlock *PB) {
|
||||
static bool checkCSEInPredecessor(Instruction *Inst, BasicBlock *PB) {
|
||||
if (!isa<BinaryOperator>(Inst) && !isa<CmpInst>(Inst))
|
||||
return false;
|
||||
for (BasicBlock::iterator I = PB->begin(), E = PB->end(); I != E; I++) {
|
||||
|
Reference in New Issue
Block a user