dvm updated, fixed and improved dead_code pass
This commit is contained in:
@@ -26,7 +26,6 @@ extern "C" void exit(int status);
|
||||
#include "extcxx_low.h"
|
||||
extern "C" int number_of_ll_node;
|
||||
extern "C" PTR_SYMB last_file_symbol;
|
||||
extern "C" PTR_SYMB FileLastSymbol(...);
|
||||
|
||||
#undef USER
|
||||
|
||||
@@ -1647,7 +1646,7 @@ SgFile &SgProject::file(int i)
|
||||
#ifdef __SPF
|
||||
SgStatement::setCurrProcessFile(pt->filename());
|
||||
SgStatement::setCurrProcessLine(0);
|
||||
last_file_symbol = FileLastSymbol(pt->filename());
|
||||
last_file_symbol = file->cur_symb;
|
||||
#endif
|
||||
return *pt;
|
||||
}
|
||||
@@ -1775,13 +1774,13 @@ int SgFile::switchToFile(const std::string &name)
|
||||
SgFile *file = &(CurrentProject->file(it->second.second));
|
||||
current_file_id = it->second.second;
|
||||
current_file = file;
|
||||
|
||||
|
||||
SgStatement::setCurrProcessFile(file->filename());
|
||||
SgStatement::setCurrProcessLine(0);
|
||||
last_file_symbol = current_file->filept->cur_symb;
|
||||
}
|
||||
}
|
||||
|
||||
last_file_symbol = FileLastSymbol(name.c_str());
|
||||
|
||||
return it->second.second;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user