[PATCH] D77747: Add pass to strip debug info from MIR

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 11:57:25 PDT 2020


dsanders created this revision.
dsanders added reviewers: vsk, aprantl, bogner.
Herald added subscribers: hiraditya, mgorny.
Herald added a project: LLVM.

Removes:

- All LLVM-IR level debug info using StripDebugInfo()
- All DEBUG_VALUE MachineInstrs
- All DebugLocs from MachineInstrs

This is a more complete solution than the previous MIRPrinter
option that just causes it to neglect to print debug-locations.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77747

Files:
  llvm/include/llvm/CodeGen/Passes.h
  llvm/include/llvm/InitializePasses.h
  llvm/lib/CodeGen/CMakeLists.txt
  llvm/lib/CodeGen/CodeGen.cpp
  llvm/lib/CodeGen/MachineStripDebug.cpp
  llvm/test/CodeGen/Generic/MIRStripDebug/all.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77747.256081.patch
Type: text/x-patch
Size: 7884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200408/2791c59f/attachment-0001.bin>


More information about the llvm-commits mailing list