Revert "add ability to record accessed and declared "named defines""

This reverts commit e735042306.
This commit is contained in:
St0fF 2018-04-10 14:44:23 +02:00
parent a1184ddd48
commit 1aaa3567d9
3 changed files with 4 additions and 31 deletions

View file

@ -3812,15 +3812,4 @@ const char* TIntermediate::getResourceName(TResourceType res)
}
// Access recorded named preprocessor-defines from the outside
// -> needs to take into account, that the outside may want to use the set
// even after the memory pool got released
void TIntermediate::getAddDefines( std::unordered_set< std::string > &targetSet, const std::unordered_set< TString > &sourceSet ) const
{
targetSet.reserve( targetSet.size() + sourceSet.size() );
for ( auto &i: sourceSet )
targetSet.emplace( i.c_str() ); // need to convert from TString (pool-allocated) to normal std::basic_string, so it may be used after the pool is released
}
} // end namespace glslang