[vmkit-commits] [vmkit] r61625 - /vmkit/trunk/lib/JnJVM/VMCore/JavaClass.h
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Sun Jan 4 05:32:12 PST 2009
Author: geoffray
Date: Sun Jan 4 07:32:07 2009
New Revision: 61625
URL: http://llvm.org/viewvc/llvm-project?rev=61625&view=rev
Log:
Constify some functions.
Modified:
vmkit/trunk/lib/JnJVM/VMCore/JavaClass.h
Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaClass.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaClass.h?rev=61625&r1=61624&r2=61625&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaClass.h (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaClass.h Sun Jan 4 07:32:07 2009
@@ -194,32 +194,32 @@
//===----------------------------------------------------------------------===//
// Assessor methods.
- uint32 getAccess() { return access;}
- Class** getInterfaces() { return interfaces; }
- const UTF8* getName() { return name; }
- Class* getSuper() { return super; }
+ uint32 getAccess() const { return access;}
+ Class** getInterfaces() const { return interfaces; }
+ const UTF8* getName() const { return name; }
+ Class* getSuper() const { return super; }
/// isArray - Is the class an array class?
///
- bool isArray() {
+ bool isArray() const {
return jnjvm::isArray(access);
}
/// isPrimitive - Is the class a primitive class?
///
- bool isPrimitive() {
+ bool isPrimitive() const {
return jnjvm::isPrimitive(access);
}
/// isInterface - Is the class an interface?
///
- bool isInterface() {
+ bool isInterface() const {
return jnjvm::isInterface(access);
}
/// isClass - Is the class a real, instantiable class?
///
- bool isClass() {
+ bool isClass() const {
return jnjvm::isClass(access);
}
@@ -920,7 +920,7 @@
/// baseClass - Get the base class of this array class.
///
- CommonClass* baseClass() {
+ CommonClass* baseClass() const {
return _baseClass;
}
More information about the vmkit-commits
mailing list