Make Nemo aware of functions defined in systemlib

Now that we define functions in systemlib they also need to be available during static (Nemo) analysis.
Esse commit está contido em:
Sean Cannella
2013-06-07 15:01:07 -07:00
commit de sgolemon
commit 4c26494f85
+8
Ver Arquivo
@@ -357,6 +357,14 @@ bool BuiltinSymbols::Load(AnalysisResultPtr ar, bool extOnly /* = false */) {
assert(!s_classes[iter->first]);
s_classes[iter->first] = iter->second[0];
}
const StringToFunctionScopePtrMap &functions =
iterFile->second->getFunctions();
for (StringToFunctionScopePtrMap::const_iterator iter = functions.begin();
iter != functions.end(); ++iter) {
iter->second->setSystem();
s_functions[iter->first] = iter->second;
}
}
} else {
NoSuperGlobals = true;