aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-11-23 17:46:23 +0000
committerDan Gohman <gohman@apple.com>2009-11-23 17:46:23 +0000
commitf9bd450a1074ad7b08e691b08388f0e39d5b06cc (patch)
tree70257c49c100467f869a8d54ec2c75f5c8123856 /lib/CodeGen
parent66336edf823f8d64d77dc5ab2bbefc21ef82f6ec (diff)
Move RegsForValue to an anonymous namespace, since it is only used
in this file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 124745d89c..cb6be3fc52 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
@@ -68,7 +68,7 @@ LimitFPPrecision("limit-float-precision",
cl::location(LimitFloatPrecision),
cl::init(0));
-namespace llvm {
+namespace {
/// RegsForValue - This struct represents the registers (physical or virtual)
/// that a particular set of values is assigned, and the type information about
/// the value. The most common situation is to represent one value at a time,
@@ -78,7 +78,7 @@ namespace llvm {
/// have legal types, so each value may require one or more registers of some
/// legal type.
///
- struct VISIBILITY_HIDDEN RegsForValue {
+ struct RegsForValue {
/// TLI - The TargetLowering object.
///
const TargetLowering *TLI;