[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Thu Jan 27 12:03:52 PST 2005



Changes in directory llvm-java/lib/Compiler:

Compiler.cpp updated: 1.202 -> 1.203
---
Log message:

Make InterfaceCount private as well.


---
Diffs of the changes:  (+2 -3)

 Compiler.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.202 llvm-java/lib/Compiler/Compiler.cpp:1.203
--- llvm-java/lib/Compiler/Compiler.cpp:1.202	Thu Jan 27 13:56:11 2005
+++ llvm-java/lib/Compiler/Compiler.cpp	Thu Jan 27 14:03:41 2005
@@ -91,7 +91,6 @@
       typedef std::vector<const Type*> ElementTypes;
       ElementTypes elementTypes;
 
-    public:
       static unsigned InterfaceCount;
 
     public:
@@ -113,7 +112,7 @@
         type_ = holder.get();
       }
       unsigned getInterfaceIndex() const { return interfaceIdx_; }
-      void setInterfaceIndex(unsigned index) { interfaceIdx_ = index; }
+      void setNextInterfaceIndex() { interfaceIdx_ = InterfaceCount++; }
     };
     typedef std::map<ClassFile*, ClassInfo> Class2ClassInfoMap;
     Class2ClassInfoMap c2ciMap_;
@@ -459,7 +458,7 @@
 
       // Get the interface id.
       if (cf->isInterface())
-        ci.setInterfaceIndex(ClassInfo::InterfaceCount++);
+        ci.setNextInterfaceIndex();
 
       ConstantClass* super = cf->getSuperClass();
       assert(super && "Class does not have superclass!");






More information about the llvm-commits mailing list