本文整理汇总了C++中SgScopeStatement::symbol_table_size方法的典型用法代码示例。如果您正苦于以下问题:C++ SgScopeStatement::symbol_table_size方法的具体用法?C++ SgScopeStatement::symbol_table_size怎么用?C++ SgScopeStatement::symbol_table_size使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SgScopeStatement
的用法示例。
在下文中一共展示了SgScopeStatement::symbol_table_size方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: printf
void
SgScopeStatement::fixupCopy_symbols(SgNode* copy, SgCopyHelp & help) const
{
#if DEBUG_FIXUP_COPY
printf ("Inside of SgScopeStatement::fixupCopy_symbols() for %p = %s copy = %p \n",this,this->class_name().c_str(),copy);
#endif
#if 0
printf ("Inside of SgScopeStatement::fixupCopy_symbols() for %p = %s copy = %p (calling SgStatement::fixupCopy_symbols()) \n",this,this->class_name().c_str(),copy);
#endif
// Call the base class fixupCopy member function
SgStatement::fixupCopy_symbols(copy,help);
#if 0
printf ("DONE: Inside of SgScopeStatement::fixupCopy_symbols() for %p = %s copy = %p (calling SgStatement::fixupCopy_symbols()) \n",this,this->class_name().c_str(),copy);
#endif
SgScopeStatement* copyScopeStatement = isSgScopeStatement(copy);
ROSE_ASSERT(copyScopeStatement != NULL);
// The symbol table should not have been setup yet!
// ROSE_ASSERT(copyScopeStatement->get_symbol_table()->size() == 0);
ROSE_ASSERT(copyScopeStatement->symbol_table_size() == 0);
#if 0
printf ("Inside of SgScopeStatement::fixupCopy_symbols() for %p = %s copy = %p (calling SageInterface::rebuildSymbolTable()) \n",this,this->class_name().c_str(),copy);
#endif
SageInterface::rebuildSymbolTable(copyScopeStatement);
#if 0
printf ("DONE: Inside of SgScopeStatement::fixupCopy_symbols() for %p = %s copy = %p (calling SageInterface::rebuildSymbolTable()) \n",this,this->class_name().c_str(),copy);
printf ("Inside of SgScopeStatement::fixupCopy_symbols() for %p = %s copy = %p (calling SageInterface::fixupReferencesToSymbols()) \n",this,this->class_name().c_str(),copy);
#endif
// DQ (3/1/2009): After rebuilding the symbol table, we have to reset references
// to old symbols (from the original symbol table) to the new symbols just built.
SageInterface::fixupReferencesToSymbols(this,copyScopeStatement,help);
#if 0
printf ("DONE: Inside of SgScopeStatement::fixupCopy_symbols() for %p = %s copy = %p (calling SageInterface::fixupReferencesToSymbols()) \n",this,this->class_name().c_str(),copy);
#endif
// printf ("\nLeaving SgScopeStatement::fixupCopy_symbols() for %p = %s copy = %p \n\n",this,this->class_name().c_str(),copy);
}