diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-09-01 23:57:03 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-09-01 23:57:03 +0200 |
commit | d2f326bbc766af34a2d1e5f0be4252eab41b2cac (patch) | |
tree | 1f5e3c6e1de94f8908c85ff4ebdb4710b66b76ac /MLKLLVMCompiler.mm | |
parent | a5364817b1cd751832a4634e4afbd67bb668fa2e (diff) |
MLKLexicalContext: Add -variableIsGlobal:.
Diffstat (limited to 'MLKLLVMCompiler.mm')
-rw-r--r-- | MLKLLVMCompiler.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm index e0d53dd..75e444b 100644 --- a/MLKLLVMCompiler.mm +++ b/MLKLLVMCompiler.mm @@ -458,7 +458,7 @@ static Constant onObject:dynctx withArgumentVector:&args]; } - else if ([_context contextForVariable:_form] == [MLKLexicalContext globalContext]) + else if ([_context variableIsGlobal:_form]) { //[_compiler insertTrace:@"Global."]; Value *binding = builder.Insert ([_context globalBindingValueForSymbol:_form]); @@ -825,7 +825,7 @@ static Constant onObject:dynctx withArgumentVector:&args]; } - else if ([_context contextForVariable:variable] == [MLKLexicalContext globalContext]) + else if ([_context variableIsGlobal:variable]) { Value *binding = builder.Insert ([_context globalBindingValueForSymbol:variable]); std::vector<Value *> args (1, value); |