[llvm-commits] CVS: llvm-java/lib/Compiler/VMClass.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Thu Mar 31 23:25:28 PST 2005
Changes in directory llvm-java/lib/Compiler:
VMClass.h updated: 1.25 -> 1.26
---
Log message:
Make interfaceIndex an int.
---
Diffs of the changes: (+3 -3)
VMClass.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm-java/lib/Compiler/VMClass.h
diff -u llvm-java/lib/Compiler/VMClass.h:1.25 llvm-java/lib/Compiler/VMClass.h:1.26
--- llvm-java/lib/Compiler/VMClass.h:1.25 Thu Mar 31 12:12:19 2005
+++ llvm-java/lib/Compiler/VMClass.h Fri Apr 1 01:25:17 2005
@@ -30,7 +30,7 @@
class Resolver;
class VMClass {
- static const unsigned INVALID_INTERFACE_INDEX = 0xFFFFFFFF;
+ static const int INVALID_INTERFACE_INDEX = -1;
const std::string name_;
Resolver* resolver_;
@@ -38,7 +38,7 @@
const VMClass* componentClass_;
Type* layoutType_;
const Type* type_;
- unsigned interfaceIndex_;
+ int interfaceIndex_;
typedef std::map<std::string, VMField> FieldMap;
FieldMap fieldMap_;
typedef std::map<std::string, VMMethod> MethodMap;
@@ -90,7 +90,7 @@
bool isArray() const { return getComponentClass(); }
bool isPrimitive() const { return getType() == getLayoutType(); }
bool isInterface() const { return classFile_ && classFile_->isInterface(); }
- unsigned getInterfaceIndex() const { return interfaceIndex_; }
+ int getInterfaceIndex() const { return interfaceIndex_; }
llvm::Constant* getConstant(unsigned index) const;
const VMClass* getClass(unsigned index) const;
More information about the llvm-commits
mailing list