Make a bunch of symbols private.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 19 Aug 2011 01:42:18 +0000 (01:42 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 19 Aug 2011 01:42:18 +0000 (01:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138025 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/LoopInfo.cpp
lib/CodeGen/RegAllocGreedy.cpp
lib/CodeGen/ScheduleDAG.cpp
lib/Target/ARM/ARMExpandPseudoInsts.cpp
lib/Transforms/Scalar/LowerAtomic.cpp

index 36fd598d13c4cc19f657b9cd198ced7a1032f3d3..6abb14f55ae522094be407c31fbb9cddb2b741fb 100644 (file)
@@ -390,6 +390,7 @@ void Loop::dump() const {
 // UnloopUpdater implementation
 //
 
+namespace {
 /// Find the new parent loop for all blocks within the "unloop" whose last
 /// backedges has just been removed.
 class UnloopUpdater {
@@ -421,6 +422,7 @@ public:
 protected:
   Loop *getNearestLoop(BasicBlock *BB, Loop *BBLoop);
 };
+} // end anonymous namespace
 
 /// updateBlockParents - Update the parent loop for all blocks that are directly
 /// contained within the original "unloop".
index 5adb76e8f82465652bd8da150be2696ff872822e..42758510d8f04e59d707c6c64f621dea3252f9c1 100644 (file)
@@ -51,7 +51,7 @@ STATISTIC(NumGlobalSplits, "Number of split global live ranges");
 STATISTIC(NumLocalSplits,  "Number of split local live ranges");
 STATISTIC(NumEvicted,      "Number of interferences evicted");
 
-cl::opt<bool> CompactRegions("compact-regions", cl::init(true));
+static cl::opt<bool> CompactRegions("compact-regions", cl::init(true));
 
 static RegisterRegAlloc greedyRegAlloc("greedy", "greedy register allocator",
                                        createGreedyRegisterAllocator);
index fc68db92e2b6080f163783105599a8c106bebf6b..1e9b5c89f1724f9ebab3aed9b6dd4c6305332c3b 100644 (file)
@@ -26,7 +26,7 @@
 using namespace llvm;
 
 #ifndef NDEBUG
-cl::opt<bool> StressSchedOpt(
+static cl::opt<bool> StressSchedOpt(
   "stress-sched", cl::Hidden, cl::init(false),
   cl::desc("Stress test instruction scheduling"));
 #endif
index a1be94ab878f37e2321285a94fe00069560298b3..0f92d66adeec38be971b6eb20f887a4066066eaf 100644 (file)
@@ -30,7 +30,7 @@
 #include "llvm/Support/raw_ostream.h" // FIXME: for debug only. remove!
 using namespace llvm;
 
-cl::opt<bool>
+static cl::opt<bool>
 VerifyARMPseudo("verify-arm-pseudo-expand", cl::Hidden,
                 cl::desc("Verify machine code after expanding ARM pseudos"));
 
index 449a795489a4c2469da05db79a06330e4b91aac6..d3fea2f2936b9686706b71cff19cfd44db06ab8d 100644 (file)
@@ -115,7 +115,7 @@ static bool LowerAtomicIntrinsic(IntrinsicInst *II) {
   return true;
 }
 
-bool LowerAtomicCmpXchgInst(AtomicCmpXchgInst *CXI) {
+static bool LowerAtomicCmpXchgInst(AtomicCmpXchgInst *CXI) {
   IRBuilder<> Builder(CXI->getParent(), CXI);
   Value *Ptr = CXI->getPointerOperand();
   Value *Cmp = CXI->getCompareOperand();
@@ -131,7 +131,7 @@ bool LowerAtomicCmpXchgInst(AtomicCmpXchgInst *CXI) {
   return true;
 }
 
-bool LowerAtomicRMWInst(AtomicRMWInst *RMWI) {
+static bool LowerAtomicRMWInst(AtomicRMWInst *RMWI) {
   IRBuilder<> Builder(RMWI->getParent(), RMWI);
   Value *Ptr = RMWI->getPointerOperand();
   Value *Val = RMWI->getValOperand();