diff dmd/aggregate.h @ 24:25bb577878e8 trunk

[svn r28] * Fixed accessing aggregate fields. it was still not quite right. hopefully is now :)
author lindquist
date Thu, 04 Oct 2007 10:13:21 +0200
parents 5e69b77a5c51
children 3cfcb944304e
line wrap: on
line diff
--- a/dmd/aggregate.h	Thu Oct 04 09:24:15 2007 +0200
+++ b/dmd/aggregate.h	Thu Oct 04 10:13:21 2007 +0200
@@ -99,7 +99,7 @@
     llvm::Type* llvmType;
     llvm::Value* llvmVtbl;
     llvm::Constant* llvmInitZ;
-    virtual void offsetToIndex(unsigned os, std::vector<unsigned>& result); // converts a DMD field offsets to LLVM struct index vector
+    virtual void offsetToIndex(Type* t, unsigned os, std::vector<unsigned>& result); // converts a DMD field offsets to LLVM struct index vector
 
     AggregateDeclaration *isAggregateDeclaration() { return this; }
 };
@@ -234,7 +234,7 @@
 
     Symbol *vtblsym;
 
-    virtual void offsetToIndex(unsigned os, std::vector<unsigned>& result);
+    virtual void offsetToIndex(Type* t, unsigned os, std::vector<unsigned>& result);
 
     ClassDeclaration *isClassDeclaration() { return (ClassDeclaration *)this; }
 };