diff options
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfStringPool.cpp | 2 | ||||
-rw-r--r-- | lib/CodeGen/CodeGenPrepare.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp b/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp index 84c9a88d9c..72cab60e23 100644 --- a/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp @@ -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) { diff --git a/lib/CodeGen/CodeGenPrepare.cpp b/lib/CodeGen/CodeGenPrepare.cpp index ff2459df87..d2559cf53d 100644 --- a/lib/CodeGen/CodeGenPrepare.cpp +++ b/lib/CodeGen/CodeGenPrepare.cpp @@ -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) { |