RNG: Take pass name as argument instead of pass pointer.
authorDominic Chen <d.c.ddcc@gmail.com>
Fri, 24 Jan 2020 22:21:14 +0000 (17:21 -0500)
committerDominic Chen <d.c.ddcc@gmail.com>
Fri, 31 Jan 2020 19:21:40 +0000 (14:21 -0500)
commit73713f3e5ef2ecf1e5afafa89f76ab89cc06b18e
tree324a81e2181de3f70a137c8afd9fa7497627a7c8
parentf465b1aff4d73a8b1f454ba8d0201a287735d246
RNG: Take pass name as argument instead of pass pointer.

Summary: With the new pass manager, it is not possible to obtain a pointer to the pass.

Reviewers: jfb, rinon, yln

Subscribers: hiraditya, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73390
llvm/include/llvm/IR/Module.h
llvm/lib/IR/Module.cpp
llvm/unittests/IR/ModuleTest.cpp