summaryrefslogtreecommitdiff
path: root/MLKLexicalContext-MLKLLVMCompilation.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 /MLKLexicalContext-MLKLLVMCompilation.mm
parenta5364817b1cd751832a4634e4afbd67bb668fa2e (diff)
MLKLexicalContext: Add -variableIsGlobal:.
Diffstat (limited to 'MLKLexicalContext-MLKLLVMCompilation.mm')
-rw-r--r--MLKLexicalContext-MLKLLVMCompilation.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/MLKLexicalContext-MLKLLVMCompilation.mm b/MLKLexicalContext-MLKLLVMCompilation.mm
index d3a84b3..e670151 100644
--- a/MLKLexicalContext-MLKLLVMCompilation.mm
+++ b/MLKLexicalContext-MLKLLVMCompilation.mm
@@ -50,8 +50,7 @@ id MLKDummyUseLLVMLexicalContext = nil;
if (flag)
return [flag boolValue];
else
- return (![self contextForVariable:name]
- || [self contextForVariable:name] == [MLKLexicalContext globalContext]);
+ return (![self contextForVariable:name] || [self variableIsGlobal:name]);
}
-(Instruction *) functionCellValueForSymbol:(id)name