summaryrefslogtreecommitdiff
path: root/MLKLLVMCompiler.mm
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-09-01 23:57:03 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-09-01 23:57:03 +0200
commitd2f326bbc766af34a2d1e5f0be4252eab41b2cac (patch)
tree1f5e3c6e1de94f8908c85ff4ebdb4710b66b76ac /MLKLLVMCompiler.mm
parenta5364817b1cd751832a4634e4afbd67bb668fa2e (diff)
MLKLexicalContext: Add -variableIsGlobal:.
Diffstat (limited to 'MLKLLVMCompiler.mm')
-rw-r--r--MLKLLVMCompiler.mm4
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);