File tree 1 file changed +3
-16
lines changed
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) {
210
210
write_32bit_value (hi );
211
211
}
212
212
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
-
229
213
static uint32_t read_32bit_value () {
230
214
uint32_t val ;
231
215
@@ -632,6 +616,9 @@ void llvm_writeout_files(void) {
632
616
// __attribute__((destructor)) and destructors whose priorities are greater than
633
617
// 100 run before this function and can thus be tracked. The priority is
634
618
// compatible with GCC 7 onwards.
619
+ #if __GNUC__ >= 9
620
+ #pragma GCC diagnostic ignored "-Wprio-ctor-dtor"
621
+ #endif
635
622
__attribute__((destructor (100 )))
636
623
#endif
637
624
static void llvm_writeout_and_clear (void ) {
You can’t perform that action at this time.
0 commit comments