提交 b9909c00 编写于 作者: T TomasMatousek

Removes per-method body state from PEWriter. (changeset 1257070)

上级 70d530af
......@@ -869,8 +869,8 @@ private void RealizeBlocks()
}
// Now linearize everything with computed offsets.
var realizedIlBitStream = Microsoft.Cci.MemoryStream.GetInstance();
var writer = new Microsoft.Cci.BinaryWriter(realizedIlBitStream);
var realizedIlBitStream = Cci.MemoryStream.GetInstance();
var writer = new Cci.BinaryWriter(realizedIlBitStream);
for (var block = leaderBlock; block != null; block = block.NextBlock)
{
......
......@@ -77,11 +77,10 @@ private void Close()
}
}
public void CloseMethod(uint offset)
public void CloseMethod()
{
try
{
this.symWriter.CloseScope(offset);
this.symWriter.CloseMethod();
}
catch (Exception ex)
......
......@@ -819,6 +819,7 @@ private void WriteLocalsHelper(ISymbolScope scope, Dictionary<int, ImmutableArra
}
writer.WriteEndElement(); // </local>
}
foreach (ISymbolConstant c in ((ISymbolScope2)scope).GetConstants())
{
// Note: We can retrieve constant tokens by saving it into signature blob
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册