From 4a3f6c88820a204f80ca0fa3f1f2fe09ca10b02f Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 6 May 2008 01:53:16 +0000 Subject: Make several variable declarations static. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50696 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/BranchFolding.cpp | 2 +- lib/CodeGen/LiveIntervalAnalysis.cpp | 12 ++++++------ lib/CodeGen/Passes.cpp | 1 + lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) (limited to 'lib/CodeGen') diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index 703addc631..0dd31b1893 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/lib/CodeGen/BranchFolding.cpp @@ -40,7 +40,7 @@ static cl::opt FlagEnableTailMerge("enable-tail-merge", cl::init(cl::BOU_UNSET), cl::Hidden); namespace { // Throttle for huge numbers of predecessors (compile speed problems) - cl::opt + static cl::opt TailMergeThreshold("tail-merge-threshold", cl::desc("Max number of predecessors to consider tail merging"), cl::init(100), cl::Hidden); diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index d8ca141c66..87c854bd02 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -38,13 +38,13 @@ using namespace llvm; namespace { // Hidden options for help debugging. - cl::opt DisableReMat("disable-rematerialization", - cl::init(false), cl::Hidden); + static cl::opt DisableReMat("disable-rematerialization", + cl::init(false), cl::Hidden); - cl::opt SplitAtBB("split-intervals-at-bb", - cl::init(true), cl::Hidden); - cl::opt SplitLimit("split-limit", - cl::init(-1), cl::Hidden); + static cl::opt SplitAtBB("split-intervals-at-bb", + cl::init(true), cl::Hidden); + static cl::opt SplitLimit("split-limit", + cl::init(-1), cl::Hidden); } STATISTIC(numIntervals, "Number of original intervals"); diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index 6742146a38..bcd67c5037 100644 --- a/lib/CodeGen/Passes.cpp +++ b/lib/CodeGen/Passes.cpp @@ -31,6 +31,7 @@ MachinePassRegistry RegisterRegAlloc::Registry; /// //===---------------------------------------------------------------------===// namespace { + static cl::opt > RegAlloc("regalloc", diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 15e3629849..8c606b886b 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -75,8 +75,8 @@ MachinePassRegistry RegisterScheduler::Registry; /// //===---------------------------------------------------------------------===// namespace { - cl::opt > + static cl::opt > ISHeuristic("pre-RA-sched", cl::init(&createDefaultScheduler), cl::desc("Instruction schedulers available (before register" -- cgit v1.2.3-70-g09d2