[PM] Port StripDeadPrototypes to the new pass manager
authorJustin Bogner <mail@justinbogner.com>
Fri, 30 Oct 2015 23:28:12 +0000 (23:28 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 30 Oct 2015 23:28:12 +0000 (23:28 +0000)
commite39e3a473df92c87da3f1d822529797abe504fed
treee348e87e760aad8fd9515c4061081ff65f3e6e83
parentaf0199863a6f4dbe8c50c73ba30936d375c68af0
[PM] Port StripDeadPrototypes to the new pass manager

This is a really straightforward port. Also adds a test for the pass,
since it only seemed to be tested tangentially before.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251726 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/InitializePasses.h
include/llvm/Transforms/IPO/StripDeadPrototypes.h [new file with mode: 0644]
lib/Passes/PassBuilder.cpp
lib/Passes/PassRegistry.def
lib/Transforms/IPO/IPO.cpp
lib/Transforms/IPO/StripDeadPrototypes.cpp
test/Transforms/LowerExpectIntrinsic/basic.ll
test/Transforms/StripDeadPrototypes/basic.ll [new file with mode: 0644]