context/llpcCompiler.cpp
void Compiler::CleanOptimizedSpirv(
    BinaryData* pSpirvBin)  // [in] Optimized SPIR-V binary
{
#ifdef LLPC_ENABLE_SPIRV_OPT
    if (pSpirvBin->pCode)
    {
        spvFreeBuffer(const_cast<void*>(pSpirvBin->pCode));
    }
#endif
}
// =====================================================================================================================
// Cleanup work for SPIR-V binary, freeing the allocated buffer by OptimizeSpirv()
Cleanup work for SPIR-V binary, freeing the allocated buffer by OptimizeSpirv()
Cleanup work for SPIR - V binary freeing the allocated buffer by OptimizeSpirv ()
void Compiler::CleanOptimizedSpirv(
    BinaryData* pSpirvBin)  
{
#ifdef LLPC_ENABLE_SPIRV_OPT
    if (pSpirvBin->pCode)
    {
        spvFreeBuffer(const_cast<void*>(pSpirvBin->pCode));
    }
#endif
}
void Compiler :: CleanOptimizedSpirv ( BinaryData * pSpirvBin ) { #ifdef LLPC_ENABLE_SPIRV_OPT if ( pSpirvBin -> pCode ) { spvFreeBuffer ( const_cast < void * > ( pSpirvBin -> pCode ) ) ; } #endif }
Cleanup work for SPIR-V binary, freeing the allocated buffer by OptimizeSpirv()
Cleanup work for SPIR - V binary freeing the allocated buffer by OptimizeSpirv ()
// [in] Optimized SPIR-V binary