[all-commits] [llvm/llvm-project] 9606ef: [AsmPrinter] fix -disable-debug-info option

Jameson Nash via All-commits all-commits at lists.llvm.org
Thu Nov 12 21:59:04 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9606ef03f03904cec213db031b5ea6fd6052dc5d
      https://github.com/llvm/llvm-project/commit/9606ef03f03904cec213db031b5ea6fd6052dc5d
  Author: Jameson Nash <vtjnash at gmail.com>
  Date:   2020-11-13 (Fri, 13 Nov 2020)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    A llvm/test/CodeGen/Generic/disable-debug-info-print.ll

  Log Message:
  -----------
  [AsmPrinter] fix -disable-debug-info option

This option was in a rather convoluted place, causing global parameters
to be set in awkward and undesirable ways to try to account for it
indirectly. Add tests for the -disable-debug-info option and ensure we
don't print unintended markers from unintended places.

Reviewed By: dstenb

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




More information about the All-commits mailing list