From d2f326bbc766af34a2d1e5f0be4252eab41b2cac Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 1 Sep 2008 23:57:03 +0200 Subject: MLKLexicalContext: Add -variableIsGlobal:. --- MLKLLVMCompiler.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MLKLLVMCompiler.mm') 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 args (1, value); -- cgit v1.2.3