File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -210,22 +210,6 @@ static void write_64bit_value(uint64_t i) {
210210 write_32bit_value (hi );
211211}
212212
213- static uint32_t length_of_string (const char * s ) {
214- return (strlen (s ) / 4 ) + 1 ;
215- }
216-
217- // Remove when we support libgcov 9 current_working_directory.
218- #if !defined(_MSC_VER ) && defined(__clang__ )
219- __attribute__((unused ))
220- #endif
221- static void
222- write_string (const char * s ) {
223- uint32_t len = length_of_string (s );
224- write_32bit_value (len );
225- write_bytes (s , strlen (s ));
226- write_bytes ("\0\0\0\0" , 4 - (strlen (s ) % 4 ));
227- }
228-
229213static uint32_t read_32bit_value () {
230214 uint32_t val ;
231215
@@ -632,6 +616,9 @@ void llvm_writeout_files(void) {
632616// __attribute__((destructor)) and destructors whose priorities are greater than
633617// 100 run before this function and can thus be tracked. The priority is
634618// compatible with GCC 7 onwards.
619+ #if __GNUC__ >= 9
620+ #pragma GCC diagnostic ignored "-Wprio-ctor-dtor"
621+ #endif
635622__attribute__((destructor (100 )))
636623#endif
637624static void llvm_writeout_and_clear (void ) {
You can’t perform that action at this time.
0 commit comments