[opt] Introduce -strip-named-metadata
authorVedant Kumar <vsk@apple.com>
Tue, 5 Jun 2018 00:56:08 +0000 (00:56 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 5 Jun 2018 00:56:08 +0000 (00:56 +0000)
commitb6ed992de054e950547623b5605c6c18235979e9
treeb3cb1158cc8b604cae61188cf8e88b26dc2fc4db
parent800255f9f1da61f65ab483f2c5aaaf870bdfa862
[opt] Introduce -strip-named-metadata

This renames and generalizes -strip-module-flags to erase all named
metadata from a module. This makes it easier to diff IR.

llvm-svn: 333977
llvm/test/DebugInfo/check-debugify-preserves-analyses.ll
llvm/test/DebugInfo/debugify-each.ll
llvm/test/DebugInfo/strip-module-flags.ll
llvm/tools/opt/opt.cpp