2004-07-27 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Mon, 26 Jul 2004 23:10:09 +0000 (23:10 -0000)
committerMartin Baulig <martin@novell.com>
Mon, 26 Jul 2004 23:10:09 +0000 (23:10 -0000)
commitdb685f3c5c3a554a62216e7ba192c2fdbc7235bc
treec509039d389064b9ad28bd7618a7a546aee066fe
parentcff9ebd5c6b14f885ea621014af9e312a37422ce
2004-07-27  Martin Baulig  <martin@ximian.com>

* IInstr.cs (IInstr): Made this an abstract class and not an
interface, added a .ctor which takes a Location.
(IInstr.Location): New public readonly field.

* CodeGen.cs (CodeGen.SymbolWriter): New public property.
(CodeGen.BeginSourceFile, EndSourceFile): New public methods.
(CodeGen.EndMethodDef): Take a `Location' argument.
(CodeGen.Write): Create debugging info if the user requested it.

* MethodDef.cs (MethodDef.ctor): Added `CodeGen codegen' and
`Location start' arguments.  If the user requested debugging
information, register ourselves with the symbol writer.
(MethodDef.WriteCode): Emit debugging information.

* DebuggingInfo.cs: New file.

svn path=/trunk/mcs/; revision=31488
17 files changed:
mcs/ilasm/codegen/BranchInstr.cs
mcs/ilasm/codegen/CalliInstr.cs
mcs/ilasm/codegen/ChangeLog
mcs/ilasm/codegen/CodeGen.cs
mcs/ilasm/codegen/DebuggingInfo.cs [new file with mode: 0644]
mcs/ilasm/codegen/FieldInstr.cs
mcs/ilasm/codegen/IInstr.cs
mcs/ilasm/codegen/IntInstr.cs
mcs/ilasm/codegen/LdcInstr.cs
mcs/ilasm/codegen/LdstrInstr.cs
mcs/ilasm/codegen/LdtokenInstr.cs
mcs/ilasm/codegen/MethodDef.cs
mcs/ilasm/codegen/MethodInstr.cs
mcs/ilasm/codegen/SimpInstr.cs
mcs/ilasm/codegen/SwitchInstr.cs
mcs/ilasm/codegen/TryBlock.cs
mcs/ilasm/codegen/TypeInstr.cs