diff options
| author | Dan Gohman <gohman@apple.com> | 2008-05-06 01:53:16 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-05-06 01:53:16 +0000 |
| commit | 4a3f6c88820a204f80ca0fa3f1f2fe09ca10b02f (patch) | |
| tree | 06573858cbbfb4ee974e18ae3bd53a600cdcb794 /lib/CodeGen | |
| parent | 84b7df43fb098268f6ce37a3e32bcc2f455ecf96 (diff) | |
Make several variable declarations static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/BranchFolding.cpp | 2 | ||||
| -rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 12 | ||||
| -rw-r--r-- | lib/CodeGen/Passes.cpp | 1 | ||||
| -rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
4 files changed, 10 insertions, 9 deletions
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<cl::boolOrDefault> FlagEnableTailMerge("enable-tail-merge", cl::init(cl::BOU_UNSET), cl::Hidden); namespace { // Throttle for huge numbers of predecessors (compile speed problems) - cl::opt<unsigned> + static cl::opt<unsigned> 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<bool> DisableReMat("disable-rematerialization", - cl::init(false), cl::Hidden); + static cl::opt<bool> DisableReMat("disable-rematerialization", + cl::init(false), cl::Hidden); - cl::opt<bool> SplitAtBB("split-intervals-at-bb", - cl::init(true), cl::Hidden); - cl::opt<int> SplitLimit("split-limit", - cl::init(-1), cl::Hidden); + static cl::opt<bool> SplitAtBB("split-intervals-at-bb", + cl::init(true), cl::Hidden); + static cl::opt<int> 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<RegisterRegAlloc::FunctionPassCtor, false, RegisterPassParser<RegisterRegAlloc> > 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<RegisterScheduler::FunctionPassCtor, false, - RegisterPassParser<RegisterScheduler> > + static cl::opt<RegisterScheduler::FunctionPassCtor, false, + RegisterPassParser<RegisterScheduler> > ISHeuristic("pre-RA-sched", cl::init(&createDefaultScheduler), cl::desc("Instruction schedulers available (before register" |
