From 23d3622e7647a2836e05bffeb24d3d9235a25f24 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 13 Jul 2012 13:25:15 +0000 Subject: [PATCH] Make helper functions static. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160173 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrInfo.cpp | 2 +- lib/Transforms/Utils/SimplifyCFG.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index 921d2150f62..53d5ee30224 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -2376,7 +2376,7 @@ X86::CondCode X86::GetOppositeBranchCondition(X86::CondCode CC) { /// getSwappedCondition - assume the flags are set by MI(a,b), return /// the condition code if we modify the instructions such that flags are /// set by MI(b,a). -X86::CondCode getSwappedCondition(X86::CondCode CC) { +static X86::CondCode getSwappedCondition(X86::CondCode CC) { switch (CC) { default: return X86::COND_INVALID; case X86::COND_E: return X86::COND_E; diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index f37ea91397b..70c0f244f68 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -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(Inst) && !isa(Inst)) return false; for (BasicBlock::iterator I = PB->begin(), E = PB->end(); I != E; I++) {