[llvm-commits] [llvm] r89675 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Dan Gohman
gohman at apple.com
Mon Nov 23 09:46:23 PST 2009
Author: djg
Date: Mon Nov 23 11:46:23 2009
New Revision: 89675
URL: http://llvm.org/viewvc/llvm-project?rev=89675&view=rev
Log:
Move RegsForValue to an anonymous namespace, since it is only used
in this file.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp?rev=89675&r1=89674&r2=89675&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp Mon Nov 23 11:46:23 2009
@@ -68,7 +68,7 @@
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 @@
/// 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;
More information about the llvm-commits
mailing list