diff dmd/enum.h @ 1147:dbe4af57b240

Changed use of toObjFile to a new codegen method. More versioning of DMD specific codegen code.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Fri, 27 Mar 2009 17:54:27 +0100
parents 1860414bf3b7
children e961851fb8be
line wrap: on
line diff
--- a/dmd/enum.h	Thu Mar 26 20:45:53 2009 +0100
+++ b/dmd/enum.h	Fri Mar 27 17:54:27 2009 +0100
@@ -61,14 +61,18 @@
 
     EnumDeclaration *isEnumDeclaration() { return this; }
 
+#if IN_DMD
     void toObjFile(int multiobj);			// compile to .obj file
     void toDebug();
     int cvMember(unsigned char *p);
 
-#if IN_DMD
     Symbol *sinit;
     Symbol *toInitializer();
 #endif
+
+#if IN_LLVM
+    void codegen(Ir*);
+#endif
 };