]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Context: move profile_arcs
authorThomas Otto <thomas.otto@pdv-fs.de>
Fri, 24 Jan 2020 19:01:03 +0000 (20:01 +0100)
committerThomas Otto <thomas.otto@pdv-fs.de>
Thu, 13 Feb 2020 22:51:43 +0000 (23:51 +0100)
src/ccache.cpp
src/legacy_globals.cpp
src/legacy_globals.hpp
unittest/test_argument_processing.cpp

index 9d8e0079914d8005a049d482844e6f65c02167a9..97daf2209c28c54313065a173bf17075b6130bb1 100644 (file)
@@ -1676,7 +1676,7 @@ hash_common_info(Context& ctx,
   }
 
   // Possibly hash the coverage data file path.
-  if (ctx.args_info.generating_coverage && profile_arcs) {
+  if (ctx.args_info.generating_coverage && ctx.args_info.profile_arcs) {
     char* dir = x_dirname(ctx.args_info.output_obj.c_str());
     if (profile_dir) {
       dir = x_strdup(profile_dir);
@@ -3565,7 +3565,6 @@ cc_reset(void)
   ignore_headers_len = 0;
   g_included_files.clear();
   has_absolute_include_headers = false;
-  profile_arcs = false;
   i_tmpfile = NULL;
   direct_i_file = false;
   free_and_nullify(cpp_stderr);
@@ -3705,7 +3704,6 @@ do_cache_compilation(Context& ctx, char* argv[])
     failed(); // stats_update is called in cc_process_args.
   }
 
-  profile_arcs = ctx.args_info.profile_arcs;
   profile_dir = x_strdup(ctx.args_info.profile_dir.c_str());
 
   direct_i_file = ctx.args_info.direct_i_file;
index af867bf971872396c08ffbfdc5785e3b59dce772..58aa782989ae0c243f43578436a8b6376aa311c9 100644 (file)
@@ -58,9 +58,6 @@ char** ignore_headers;
 // Size of headers to ignore list.
 size_t ignore_headers_len;
 
-// Is the compiler being asked to output coverage data (.gcda) at runtime?
-bool profile_arcs;
-
 // Name of the custom profile directory (default: object dirname).
 char* profile_dir;
 
index 351a09b4dcc0ce24535f2edac75e9b143699d002..831f3c8ca848be078b2aaf7d755550c050a73918 100644 (file)
@@ -54,8 +54,6 @@ extern char** ignore_headers;
 
 extern size_t ignore_headers_len;
 
-extern bool profile_arcs;
-
 extern char* profile_dir;
 
 extern char* i_tmpfile;
index 60d9636a4d2043312f643e002eaada0ef59dcd07..f8b5fe318e3d81a83fd4b1130e478dc7e938a4f1 100644 (file)
@@ -84,7 +84,6 @@ cc_process_args(Context& ctx,
                                  extra_args_to_hash,
                                  compiler_args);
 
-  profile_arcs = ctx.args_info.profile_arcs;
   profile_dir = x_strdup(ctx.args_info.profile_dir.c_str());
 
   direct_i_file = ctx.args_info.direct_i_file;