dblaikie added a comment.

Might be easier as a few patches - renaming the existing option, adding the new 
one, then removing the single split dwarf flag handling in favor of implying 
that by the absence of an output file name. (if I'm reading what this patch 
does)



================
Comment at: include/clang/Basic/CodeGenOptions.h:185-188
+  /// The name for the split debug info file used in the skeleton CU.
   std::string SplitDwarfFile;
 
+  /// Output filename for the split debug info, not used in the skeleton CU.
----------------
Comments are a bit inconsistent - "filename for the split debug info" versus 
"name for the split debug info file" - makes it perhaps a bit harder to see 
what the important difference is between these two values.

It might be helpful to clarify "used in the skeleton CU" as "Used as the 
dwo_name in the DWARF" versus "the name of the file to write the .dwo sections 
to" or something like that?


================
Comment at: lib/CodeGen/BackendUtil.cpp:847
   default:
-    if (!CodeGenOpts.SplitDwarfFile.empty() &&
-        (CodeGenOpts.getSplitDwarfMode() == CodeGenOptions::SplitFileFission)) 
{
-      DwoOS = openOutputFile(CodeGenOpts.SplitDwarfFile);
+    if (CodeGenOpts.EnableSplitDwarf && !CodeGenOpts.SplitDwarfOutput.empty()) 
{
+      DwoOS = openOutputFile(CodeGenOpts.SplitDwarfOutput);
----------------
Why did this add a check for EnableSplitDwarf here that wasn't there before?


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59673/new/

https://reviews.llvm.org/D59673



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to