Make enum private as it is an implementation detail.
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Mon, 23 Feb 2004 23:49:40 +0000 (23:49 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Mon, 23 Feb 2004 23:49:40 +0000 (23:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11782 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/VirtRegMap.h

index f0eb0982a78dddbc966796cd0613805d7e49baa7..90bd2af4e74a8d8de214b4b14a25e85a3c329523 100644 (file)
@@ -29,11 +29,6 @@ namespace llvm {
         typedef std::vector<unsigned> Virt2PhysMap;
         typedef std::vector<int> Virt2StackSlotMap;
 
-        enum {
-            NO_PHYS_REG   = 0,
-            NO_STACK_SLOT = INT_MAX
-        };
-
     private:
         MachineFunction* mf_;
         Virt2PhysMap v2pMap_;
@@ -50,6 +45,11 @@ namespace llvm {
             return index + MRegisterInfo::FirstVirtualRegister;
         }
 
+        enum {
+            NO_PHYS_REG   = 0,
+            NO_STACK_SLOT = INT_MAX
+        };
+
     public:
         VirtRegMap(MachineFunction& mf)
             : mf_(&mf),