Fix nested structure/union name handling.

Local names must be assigned before processing the body.

Change-Id: I9c3e3d4b7575c612148aea89bbd424e59e3c0604
diff --git a/EnumType.h b/EnumType.h
index 7aa55e5..fc2a9ea 100644
--- a/EnumType.h
+++ b/EnumType.h
@@ -11,7 +11,8 @@
 struct EnumValue;
 
 struct EnumType : public NamedType {
-    EnumType(std::vector<EnumValue *> *values,
+    EnumType(const char *localName,
+             std::vector<EnumValue *> *values,
              Type *storageType = NULL);
 
     const Type *storageType() const;