[vmkit-commits] [vmkit] r70130 - /vmkit/trunk/include/mvm/GC/GC.h
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Sun Apr 26 09:28:20 PDT 2009
Author: geoffray
Date: Sun Apr 26 11:28:07 2009
New Revision: 70130
URL: http://llvm.org/viewvc/llvm-project?rev=70130&view=rev
Log:
Add a getter.
Modified:
vmkit/trunk/include/mvm/GC/GC.h
Modified: vmkit/trunk/include/mvm/GC/GC.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/include/mvm/GC/GC.h?rev=70130&r1=70129&r2=70130&view=diff
==============================================================================
--- vmkit/trunk/include/mvm/GC/GC.h (original)
+++ vmkit/trunk/include/mvm/GC/GC.h Sun Apr 26 11:28:07 2009
@@ -54,7 +54,10 @@
VirtualTable *_XXX_vt;
inline gcRoot *_2gc() { return (gcRoot *)this; }
destructor_t getDestructor() {
- return ((destructor_t*)(this->_XXX_vt))[0];
+ return (destructor_t)this->_XXX_vt->destructor;
+ }
+ destructor_t getDelete() {
+ return (destructor_t)this->_XXX_vt->operatorDelete;
}
};
More information about the vmkit-commits
mailing list