Teach the stripNonLineTableDebugInfo pass about the llvm.dbg.label intrinsic.
authorAdrian Prantl <aprantl@apple.com>
Thu, 2 Apr 2020 23:11:49 +0000 (16:11 -0700)
committerAdrian Prantl <aprantl@apple.com>
Fri, 3 Apr 2020 00:39:33 +0000 (17:39 -0700)
commit93fe58c9cf532d8ddb166d8d00667707bc017ed7
tree47b2fa233232133327fd6437713037b38ef86d24
parentc024f3ebdcfc9910d7d8f711a76d9dc669c9e97c
Teach the stripNonLineTableDebugInfo pass about the llvm.dbg.label intrinsic.

Debug info for labels is not generated at -gline-tables-only, so this
pass should remove them.

Differential Revision: https://reviews.llvm.org/D77345
llvm/lib/IR/DebugInfo.cpp
llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-labels.ll [new file with mode: 0644]