diff dmd/aggregate.h @ 77:714057ff2dbb trunk

[svn r81] Fixed: Union support was very buggy. Should be fairly solid now.
author lindquist
date Wed, 31 Oct 2007 09:34:18 +0100
parents b706170e24a9
children 058d3925950e
line wrap: on
line diff
--- a/dmd/aggregate.h	Wed Oct 31 07:24:02 2007 +0100
+++ b/dmd/aggregate.h	Wed Oct 31 09:34:18 2007 +0100
@@ -104,7 +104,6 @@
     llvm::ConstantStruct* llvmConstVtbl;
     llvm::Constant* llvmInitZ;
     bool llvmHasUnions;
-    virtual size_t offsetToIndex(Type* t, unsigned os, std::vector<unsigned>& result); // converts a DMD field offsets to LLVM struct index vector
 
     AggregateDeclaration *isAggregateDeclaration() { return this; }
 };
@@ -240,7 +239,7 @@
 
     Symbol *vtblsym;
 
-    virtual size_t offsetToIndex(Type* t, unsigned os, std::vector<unsigned>& result);
+    void offsetToIndex(Type* t, unsigned os, std::vector<unsigned>& result);
 
     ClassDeclaration *isClassDeclaration() { return (ClassDeclaration *)this; }
 };