Merge pull request #2950 from qingyuanzNV/insert_opline_before_opfunction2

Generate OpLine Before OpFunction
This commit is contained in:
Greg Fischer
2022-05-31 13:25:22 -06:00
committed by GitHub
13 changed files with 42 additions and 1 deletions

View File

@@ -2792,6 +2792,10 @@ bool TGlslangToSpvTraverser::visitAggregate(glslang::TVisit visit, glslang::TInt
} else {
handleFunctionEntry(node);
}
if (options.generateDebugInfo) {
const auto& loc = node->getLoc();
currentFunction->setDebugLineInfo(builder.getSourceFile(), loc.line, loc.column);
}
} else {
if (inEntryPoint)
entryPointTerminated = true;