[all-commits] [llvm/llvm-project] e3b9af: [Driver] -gsplit-dwarf: Produce .dwo regardless of...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Jan 14 11:51:27 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e3b9af92a4821fec25c207e2d1e443e09ff6b11e
      https://github.com/llvm/llvm-project/commit/e3b9af92a4821fec25c207e2d1e443e09ff6b11e
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-01-14 (Thu, 14 Jan 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/split-debug.c

  Log Message:
  -----------
  [Driver] -gsplit-dwarf: Produce .dwo regardless of -gN for IR input

This generalizes D94647 to IR input, as suggested by @tejohnson.
Ideally the driver should just forward split dwarf options, but doing this currently will cause `clang -gsplit-dwarf -c a.c` to create a .dwo with just `.strtab`.

Reviewed By: dblaikie, tejohnson

Differential Revision: https://reviews.llvm.org/D94655




More information about the All-commits mailing list