Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / cil / make-opcodes-def.pl
index a94c15778cac608d1f83d9d1e23421d0de139da9..4a4c8cf55b8b212d80417fbf93e2fa7138c305b8 100644 (file)
@@ -22,6 +22,7 @@ my %valid_flow;
 open OUTPUT, ">$ARGV[1]" || die "Can not create $ARGV[1] file: $!";
 
 my $parser = new XML::Parser (Handlers => {Start => \&handle_opcode});
+print_header();
 $parser->parsefile($ARGV[0]);
 print_trailer();
 close(OUTPUT) || die "Can not close file: $!";
@@ -53,6 +54,12 @@ sub handle_opcode {
     
 }
 
+sub print_header {
+print OUTPUT<<EOF;
+/* GENERATED FILE, DO NOT EDIT */
+EOF
+}
+
 sub print_trailer {
 print OUTPUT<<EOF;
 #ifndef OPALIAS