From 38df4bd0318f4692be310b8dde355c4eea367dd7 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 27 Apr 2014 14:54:59 +0000 Subject: Make helper functions static. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207359 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfStringPool.cpp | 2 +- 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 & +static std::pair & getEntry(AsmPrinter &Asm, StringMap, 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(User)) { if (User->getOpcode() != Instruction::And || !isa(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 &InsertedShifts, const TargetLowering &TLI) { -- cgit v1.2.3