Browse Source

Remove BinaryComparisonInstruction.Create from T4 template

pull/728/merge
Siegfried Pammer 9 years ago
parent
commit
19c819cd95
  1. 11
      ICSharpCode.Decompiler/IL/Instructions.cs
  2. 15
      ICSharpCode.Decompiler/IL/Instructions.tt

11
ICSharpCode.Decompiler/IL/Instructions.cs

@ -4304,17 +4304,6 @@ namespace ICSharpCode.Decompiler.IL @@ -4304,17 +4304,6 @@ namespace ICSharpCode.Decompiler.IL
}
}
partial class BinaryComparisonInstruction
{
public static BinaryComparisonInstruction Create(OpCode opCode, ILInstruction left, ILInstruction right)
{
switch (opCode) {
default:
throw new ArgumentException("opCode is not a binary comparison instruction");
}
}
}
partial class InstructionOutputExtensions
{
static readonly string[] originalOpCodeNames = {

15
ICSharpCode.Decompiler/IL/Instructions.tt

@ -329,21 +329,6 @@ namespace ICSharpCode.Decompiler.IL @@ -329,21 +329,6 @@ namespace ICSharpCode.Decompiler.IL
<# } #>
}
partial class BinaryComparisonInstruction
{
public static BinaryComparisonInstruction Create(OpCode opCode, ILInstruction left, ILInstruction right)
{
switch (opCode) {
<# foreach (OpCode opCode in opCodes.Where(c => c.BaseClass == "BinaryComparisonInstruction")) { #>
case OpCode.<#=opCode.Name#>:
return new <#=opCode.Name#>(left, right);
<# } #>
default:
throw new ArgumentException("opCode is not a binary comparison instruction");
}
}
}
partial class InstructionOutputExtensions
{
static readonly string[] originalOpCodeNames = {

Loading…
Cancel
Save