annotate dmd/ObjModule.d @ 191:52188e7e3fb5

Fixed deprecated features, now compiles with DMD2.058 Also changed Array allocation policy: Now doesn't reallocate but malloc's, followed by a memcpy (no free). (this fixes a crash while compiling druntime. Same bug in dmd)
author korDen@korDen-pc
date Sun, 25 Mar 2012 03:11:12 +0400
parents 10317f0c89a5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.ObjModule;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
3 struct ObjModule
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 ubyte* base; // where are we holding it in memory
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 uint length; // in bytes
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 ushort page; // page module starts in output file
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 ubyte flags;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9 string name; // module name
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12 enum MFgentheadr = 1; // generate THEADR record
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13 enum MFtheadr = 2; // module name comes from THEADR record