[PATCH] D63167: [Clang] Remove unused -split-dwarf and obsolete -enable-split-dwarf

Aaron Puchert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 15 09:23:05 PDT 2019


aaronpuchert added inline comments.


================
Comment at: clang/lib/CodeGen/BackendUtil.cpp:864
   default:
-    if (!CodeGenOpts.SplitDwarfOutput.empty() &&
-        (CodeGenOpts.getSplitDwarfMode() == CodeGenOptions::SplitFileFission)) {
+    if (!CodeGenOpts.SplitDwarfOutput.empty()) {
       DwoOS = openOutputFile(CodeGenOpts.SplitDwarfOutput);
----------------
Perhaps I should also check whether `SplitDwarfFile` is empty.


================
Comment at: clang/lib/CodeGen/BackendUtil.cpp:1276
         createTargetTransformInfoWrapperPass(getTargetIRAnalysis()));
-    if (!CodeGenOpts.SplitDwarfOutput.empty() &&
-        CodeGenOpts.getSplitDwarfMode() == CodeGenOptions::SplitFileFission) {
+    if (!CodeGenOpts.SplitDwarfOutput.empty()) {
       DwoOS = openOutputFile(CodeGenOpts.SplitDwarfOutput);
----------------
Dito here.


================
Comment at: clang/test/CodeGen/split-debug-filename.c:14-16
-// Testing to ensure that the dwo name is not output into the compile unit if
-// it's for vanilla split-dwarf rather than split-dwarf for implicit modules.
-// VANILLA-NOT: splitDebugFilename
----------------
We lose that when we remove `-enable-split-dwarf`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D63167





More information about the cfe-commits mailing list