preprocessor: move external_functions_table reindexing to modfile::transformpass
parent
1817992f45
commit
549c6637cb
|
@ -61,7 +61,6 @@ DataTree::reindex(SymbolTable &orig_symbol_table)
|
|||
first_deriv_external_function_node_map.clear();
|
||||
second_deriv_external_function_node_map.clear();
|
||||
|
||||
reindexExternalFunctions(orig_symbol_table);
|
||||
reindexLocalVars(orig_symbol_table);
|
||||
}
|
||||
|
||||
|
@ -76,12 +75,6 @@ DataTree::reindexLocalVars(SymbolTable &orig_symbol_table)
|
|||
it->second->cloneDynamicReindex(*this, orig_symbol_table));
|
||||
}
|
||||
|
||||
void
|
||||
DataTree::reindexExternalFunctions(SymbolTable &orig_symbol_table)
|
||||
{
|
||||
external_functions_table.reindex(symbol_table, orig_symbol_table);
|
||||
}
|
||||
|
||||
expr_t
|
||||
DataTree::AddNonNegativeConstant(const string &value)
|
||||
{
|
||||
|
|
|
@ -238,8 +238,6 @@ public:
|
|||
void writePowerDerivCHeader(ostream &output) const;
|
||||
//! Write getPowerDeriv
|
||||
void writePowerDeriv(ostream &output, bool use_dll) const;
|
||||
//! reindex external functions
|
||||
void reindexExternalFunctions(SymbolTable &orig_symbol_table);
|
||||
void reindex(SymbolTable &orig_symbol_table);
|
||||
void reindexLocalVars(SymbolTable &orig_symbol_table);
|
||||
//! Thrown when trying to access an unknown variable by deriv_id
|
||||
|
|
|
@ -316,6 +316,7 @@ ModFile::transformPass(bool nostrict)
|
|||
dynamic_model.reindex(orig_symbol_table);
|
||||
dynamic_model.reindexStaticOnlyEquations(orig_symbol_table);
|
||||
|
||||
external_functions_table.reindex(symbol_table, orig_symbol_table);
|
||||
|
||||
vector<Statement *> orig_statements = statements;
|
||||
statements.clear();
|
||||
|
|
Loading…
Reference in New Issue