[mir-strip-debug] Optionally preserve debug info that wasn't from debugify/mir-debugify
authorDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 9 Apr 2020 17:36:50 +0000 (10:36 -0700)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Fri, 10 Apr 2020 22:24:14 +0000 (15:24 -0700)
commitdfca98d6a83c725db38a20c06df92f1b2b9ce16b
tree0e8ad1d83720c75327247e322d55be511c3dc38b
parentcbe42a9d5fa76eb56cbe615bd64cff2e6a8a9d65
[mir-strip-debug] Optionally preserve debug info that wasn't from debugify/mir-debugify

Summary:
A few tests start out with debug info and expect it to reach
the output. For these tests we shouldn't strip the debug info

Reviewers: aprantl, vsk, bogner

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D77886
llvm/include/llvm/CodeGen/Passes.h
llvm/lib/CodeGen/MachineStripDebug.cpp
llvm/test/CodeGen/Generic/MIRStripDebug/dont-strip-real-debug-info.mir [new file with mode: 0644]