diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-04-27 14:54:59 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-04-27 14:54:59 +0000 |
| commit | 322053caa7ffa4acdf9745069005042f4e231f1c (patch) | |
| tree | 92519c9a38c67e26f4317cb0420a23c6fdf4766a /llvm/lib/CodeGen | |
| parent | 39f85b185c79224d4b578cc4ceb44e0ed6c1a710 (diff) | |
| download | bcm5719-llvm-322053caa7ffa4acdf9745069005042f4e231f1c.tar.gz bcm5719-llvm-322053caa7ffa4acdf9745069005042f4e231f1c.zip | |
Make helper functions static.
llvm-svn: 207359
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp index 84c9a88d9cd..72cab60e232 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp +++ b/llvm/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/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index ff2459df87e..d2559cf53d2 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/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) { |

