Make helper functions static.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207359 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2014-04-27 14:54:59 +00:00
parent 35d4ad33f6
commit 38df4bd031
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ using namespace llvm;
MCSymbol *DwarfStringPool::getSectionSymbol() { return SectionSymbol; }
std::pair<MCSymbol *, unsigned> &
static std::pair<MCSymbol *, unsigned> &
getEntry(AsmPrinter &Asm,
StringMap<std::pair<MCSymbol *, unsigned>, BumpPtrAllocator &> &Pool,
StringRef Prefix, StringRef Str) {

View File

@ -634,7 +634,7 @@ static bool OptimizeCmpExpression(CmpInst *CI) {
/// 1. Truncate instruction
/// 2. And instruction and the imm is a mask of the low bits:
/// imm & (imm+1) == 0
bool isExtractBitsCandidateUse(Instruction *User) {
static bool isExtractBitsCandidateUse(Instruction *User) {
if (!isa<TruncInst>(User)) {
if (User->getOpcode() != Instruction::And ||
!isa<ConstantInt>(User->getOperand(1)))
@ -650,7 +650,7 @@ bool isExtractBitsCandidateUse(Instruction *User) {
/// SinkShiftAndTruncate - sink both shift and truncate instruction
/// to the use of truncate's BB.
bool
static bool
SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *CI,
DenseMap<BasicBlock *, BinaryOperator *> &InsertedShifts,
const TargetLowering &TLI) {