MCPcopy Create free account
hub / github.com/catboost/catboost / __llvm_profile_write_file

Function __llvm_profile_write_file

util/system/yassert.cpp:26–28  ·  view source on GitHub ↗

__llvm_profile_write_file may not be provided if the executable target uses NO_CLANG_COVERAGE() macro and arrives as test's dependency via DEPENDS() macro. That's why we provide a weak no-op implementation for __llvm_profile_write_file, which is used below in the code, to correctly save codecoverage profile before program exits using abort().

Source from the content-addressed store, hash-verified

24 // That's why we provide a weak no-op implementation for __llvm_profile_write_file,
25 // which is used below in the code, to correctly save codecoverage profile before program exits using abort().
26 Y_WEAK int __llvm_profile_write_file(void) {
27 return 0;
28 }
29}
30
31#endif

Callers 2

GracefulShutdownHandlerFunction · 0.85
InternalPanicImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected