projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2780 from alexanderkyte/seq_point_optimize
[mono.git]
/
mcs
/
class
/
PEAPI
/
PEAPI.cs
diff --git
a/mcs/class/PEAPI/PEAPI.cs
b/mcs/class/PEAPI/PEAPI.cs
index 46672255e04174e3e5d7a4fcaa057c17b3588dcd..ec3cb4107176a74c0065e82b37a7e856322056bf 100644
(file)
--- a/
mcs/class/PEAPI/PEAPI.cs
+++ b/
mcs/class/PEAPI/PEAPI.cs
@@
-923,6
+923,11
@@
namespace PEAPI {
return file;
}
return file;
}
+ public PrimitiveTypeRef AddPrimitiveType (PrimitiveType type)
+ {
+ return new PrimitiveTypeRef (type, metaData);
+ }
+
/// <summary>
/// Add a manifest resource to this PEFile NOT YET IMPLEMENTED
/// </summary>
/// <summary>
/// Add a manifest resource to this PEFile NOT YET IMPLEMENTED
/// </summary>
@@
-940,6
+945,12
@@
namespace PEAPI {
element.HasCustomAttr = true;
}
element.HasCustomAttr = true;
}
+ public void AddCustomAttribute (Method meth, Constant constant, MetaDataElement element)
+ {
+ metaData.AddCustomAttribute (new CustomAttribute (element, meth, constant));
+ element.HasCustomAttr = true;
+ }
+
public void AddDeclSecurity (SecurityAction sec_action, byte [] data, MetaDataElement element)
{
metaData.AddDeclSecurity (new DeclSecurity (element, (ushort) sec_action, data));
public void AddDeclSecurity (SecurityAction sec_action, byte [] data, MetaDataElement element)
{
metaData.AddDeclSecurity (new DeclSecurity (element, (ushort) sec_action, data));