Add way to omit debug-location from MIR output
authorDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 6 Apr 2020 17:57:21 +0000 (10:57 -0700)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 6 Apr 2020 23:22:01 +0000 (16:22 -0700)
commitf27cea721e5893c112edfe1136973ed77064580b
tree855e3f5c23817f4a915fc37da30461eaf4e79181
parent41ba80182cc2540fcf85bcda10bbde04816b7e6e
Add way to omit debug-location from MIR output

Summary:
In lieu of a proper pass that strips debug info, add a way
to omit debug-locations from the MIR output so that
instructions with MMO's continue to match CHECK's when
mir-debugify is used

Reviewers: aprantl, bogner, vsk

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D77575
llvm/lib/CodeGen/MIRPrinter.cpp