Add options to control how reflection information is built

This commit is contained in:
baldurk 2019-01-29 15:45:56 +00:00
parent 1dc5dcf0a5
commit 6d47785825
4 changed files with 17 additions and 5 deletions

View file

@ -1966,12 +1966,12 @@ const char* TProgram::getInfoDebugLog()
// Reflection implementation.
//
bool TProgram::buildReflection()
bool TProgram::buildReflection(int opts)
{
if (! linked || reflection)
return false;
reflection = new TReflection;
reflection = new TReflection((EShReflectionOptions)opts);
for (int s = 0; s < EShLangCount; ++s) {
if (intermediate[s]) {