diff dmd/dsymbol.h @ 1630:44b145be2ef5

Merge dmd 1.056.
author Robert Clipsham <robert@octarineparrot.com>
date Sat, 06 Feb 2010 15:53:52 +0000
parents def7a1d494fd
children 9bf06e02070b
line wrap: on
line diff
--- a/dmd/dsymbol.h	Wed Jan 06 19:53:35 2010 +0100
+++ b/dmd/dsymbol.h	Sat Feb 06 15:53:52 2010 +0000
@@ -21,8 +21,9 @@
 #include "mars.h"
 #include "arraytypes.h"
 
-// llvm
+#if IN_LLVM
 #include "../ir/irdsymbol.h"
+#endif
 
 struct Identifier;
 struct Scope;
@@ -51,6 +52,9 @@
 struct NewDeclaration;
 struct VarDeclaration;
 struct AttribDeclaration;
+#if IN_DMD
+struct Symbol;
+#endif
 struct Package;
 struct Module;
 struct Import;
@@ -76,9 +80,6 @@
 #if TARGET_NET
 struct PragmaScope;
 #endif
-#if IN_DMD
-struct Symbol;
-#endif
 #if IN_GCC
 union tree_node;
 typedef union tree_node TYPE;
@@ -109,6 +110,18 @@
     PROTexport,
 };
 
+/* State of symbol in winding its way through the passes of the compiler
+ */
+enum PASS
+{
+    PASSinit,		// initial state
+    PASSsemantic,	// semantic() started
+    PASSsemanticdone,	// semantic() done
+    PASSsemantic2,	// semantic2() run
+    PASSsemantic3,	// semantic3() started
+    PASSsemantic3done,	// semantic3() done
+    PASSobj,		// toObjFile() run
+};
 
 struct Dsymbol : Object
 {