the code was like that and finally realized today that it was like
that because it was wrong. Wait until the opportune momement to
calculate the index sizes (after everything has been added to the
streams, and before writing anything).
svn path=/trunk/mcs/; revision=31348
ClassRefs. This way modified types can be used. I am having alot
of trouble remembering why I actually even need this class
though.
svn path=/trunk/mcs/; revision=31329
checking the byte hashtable for duplicate entries actually
works. Old method was valid but created larger then needed
binaries.
svn path=/trunk/mcs/; revision=31088
can ensure they are emitted no matter what table they are
in. Previously not all custom attributes were getting emitted.
svn path=/trunk/mcs/; revision=30882
that sequentially laid out fields are laid out in the right
order. When building custom attribute tables actually emit the
custom attribute data. When writing the .sdata section make sure
to pad to its size. The constants itself will not make up the
entire section because it is aligned on 512 byte blocks.
svn path=/trunk/mcs/; revision=30458
used. So we can easily add stuff to modules and assemblies. Fix
the nometadata flag, it should be set when there is NO metadata
not when there is metadata.
svn path=/trunk/mcs/; revision=29562
is used for setting the class or valuetype of a types instance so the class
reference isn't modified. Allows things like 'valuetype
[mscorlib]System.Object'.
svn path=/trunk/mcs/; revision=23234
signatures. Use this class instead of GenericTypeInst for creating
generic methods. Fix Generic call conv. according to two of my
docs it is 0x10 and only one says 0x50 so I will go with 0x10.
svn path=/trunk/mcs/; revision=18871
a name, names are mandatory. Add method to add type parameters to
methods. Allow GenericParameters to have either a type or a
method as its owner. Also fix visibility of GenericParameters, a
GenericParameter should not be created outside of PEAPI.
svn path=/trunk/mcs/; revision=18772
pinvoke info. This isn't entirely correct because native unmanaged
methods can have pinvoke info and not have 0 RVAs PEAPI can't
handle native unmanged code though. Expose the ModuleClass so
'global' items can be referenced like this '<Module>'::foo.
svn path=/trunk/mcs/; revision=18336
be added to type specs. This fixing bah-zillions of little
problems in ilasm. We can now add fields and methods to arrays,
reference types, and most importantly generics.
Add the GenericTypeInst class. This is an instance of a generic
type. ie Hash<int32, string>. GenericTypeSpecs now write their id
number as a compressed number, this matches the way the runtime
loads them and will allow generic types to have more then 255 type
parameters.
svn path=/trunk/mcs/; revision=16458
attributes. Attributes can now be added to ClassDefs and
MethodDefs. Still need to implement for other metadata elements.
Added the stele.r4 and stelem.r8 instructions, this should also
shift the stelem.ref instruction to the proper value (0xA2)
svn path=/trunk/mcs/; revision=15020