]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Remove obsolete generating_debuginfo_level_3 variable
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 15 Nov 2025 20:12:23 +0000 (21:12 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 22 Nov 2025 09:34:20 +0000 (10:34 +0100)
Obsolete as of fd9de834 "chore: Remove ability to avoid 2nd call to
preprocessor (run_second_cpp)".

src/ccache/argprocessing.cpp

index c1e16ba1adb4403cacbd529c71a07578c5e2de99..a38d342fff206f2d2c0e9bdfe419677c741721ad 100644 (file)
@@ -97,9 +97,6 @@ public:
   // Is the dependency file set via -Wp,-M[M]D,target or -MFtarget?
   OutputDepOrigin output_dep_origin = OutputDepOrigin::none;
 
-  // Is the compiler being asked to output debug info on level 3?
-  bool generating_debuginfo_level_3 = false;
-
   // Arguments classified as input files.
   std::vector<fs::path> input_files;
 
@@ -791,12 +788,8 @@ process_option_arg(const Context& ctx,
     if (last_char == '0') {
       // "-g0", "-ggdb0" or similar: All debug information disabled.
       args_info.generating_debuginfo = false;
-      state.generating_debuginfo_level_3 = false;
     } else {
       args_info.generating_debuginfo = true;
-      if (last_char == '3') {
-        state.generating_debuginfo_level_3 = true;
-      }
       if (arg == "-gsplit-dwarf") {
         args_info.seen_split_dwarf = true;
       }