Revert "add ability to record accessed and declared "named defines""
This reverts commit e735042306.
This commit is contained in:
parent
a1184ddd48
commit
1aaa3567d9
3 changed files with 4 additions and 31 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue