summaryrefslogtreecommitdiff
path: root/BCT/BytecodeTranslator/Program.cs
diff options
context:
space:
mode:
authorGravatar mikebarnett <unknown>2010-07-02 22:04:10 +0000
committerGravatar mikebarnett <unknown>2010-07-02 22:04:10 +0000
commit57d26deffedd6434639afe709458548c2534af98 (patch)
tree110cf65c21049e52d4315d82cabda34bd4cb58b9 /BCT/BytecodeTranslator/Program.cs
parentef2e5291eb22b940989c5077d4d23ce5ac8dc91d (diff)
Introduction of the Sink: a global object that is threaded through all of the traversers and which contains the information that they need to share with each other.
Diffstat (limited to 'BCT/BytecodeTranslator/Program.cs')
-rw-r--r--BCT/BytecodeTranslator/Program.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/BCT/BytecodeTranslator/Program.cs b/BCT/BytecodeTranslator/Program.cs
index 14cbfce7..139188bb 100644
--- a/BCT/BytecodeTranslator/Program.cs
+++ b/BCT/BytecodeTranslator/Program.cs
@@ -62,7 +62,7 @@ namespace BytecodeTranslator {
#region Pass 3: Translate the code model to BPL
//tmp_BPLGenerator translator = new tmp_BPLGenerator(host, acp);
var factory = new CLRSemantics();
- MetadataTraverser translator = new MetadataTraverser(factory, host.GetContractExtractor(module.ModuleIdentity));
+ MetadataTraverser translator = factory.MakeMetadataTraverser(host.GetContractExtractor(module.ModuleIdentity));
assembly = module as IAssembly;
if (assembly != null)
translator.Visit(assembly);