Imported Upstream version 5.8.0.22

Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-10-19 20:04:20 +00:00
parent 5f4a27cc8a
commit 7d05485754
5020 changed files with 114082 additions and 186061 deletions

View File

@@ -53,6 +53,7 @@ namespace Mono.ILASM {
private bool keycontainer = false;
private string keyname;
private StrongName sn;
bool noautoinherit;
public DriverMain (string[] args)
{
@@ -67,7 +68,7 @@ namespace Mono.ILASM {
if (output_file == null)
output_file = CreateOutputFilename ();
try {
codegen = new CodeGen (output_file, target == Target.Dll, debugging_info);
codegen = new CodeGen (output_file, target == Target.Dll, debugging_info, noautoinherit);
foreach (string file_path in il_file_list) {
Report.FilePath = file_path;
ProcessFile (file_path);
@@ -270,6 +271,9 @@ namespace Mono.ILASM {
else
keyname = command_arg;
break;
case "noautoinherit":
noautoinherit = true;
break;
case "scan_only":
scan_only = true;
break;
@@ -336,16 +340,17 @@ namespace Mono.ILASM {
private void Usage ()
{
Console.WriteLine ("Mono ILasm compiler\n" +
Console.WriteLine ("Mono IL assembler compiler\n" +
"ilasm [options] source-files\n" +
" --about About the Mono ILasm compiler\n" +
" --version Print the version number of the Mono ILasm compiler\n" +
" --about About the Mono IL assembler compiler\n" +
" --version Print the version number of the compiler\n" +
" /output:file_name Specifies output file.\n" +
" /exe Compile to executable.\n" +
" /dll Compile to library.\n" +
" /debug Include debug information.\n" +
" /key:keyfile Strongname using the specified key file\n" +
" /key:@container Strongname using the specified key container\n" +
" /noautoinherit Disable inheriting from System.Object by default\n" +
"Options can be of the form -option or /option\n");
Environment.Exit (1);
}
@@ -361,7 +366,7 @@ namespace Mono.ILASM {
private void Version ()
{
string version = System.Reflection.Assembly.GetExecutingAssembly ().GetName ().Version.ToString ();
Console.WriteLine ("Mono ILasm compiler version {0}", version);
Console.WriteLine ("Mono IL assembler compiler version {0}", version);
Environment.Exit (0);
}