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:. --- MLKLexicalContext-MLKLLVMCompilation.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'MLKLexicalContext-MLKLLVMCompilation.mm') 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 -- cgit v1.2.3