[NewPM][PassInstrumentation] IR printing support from clang driver
authorTaewook Oh <twoh@fb.com>
Wed, 14 Aug 2019 07:11:09 +0000 (07:11 +0000)
committerTaewook Oh <twoh@fb.com>
Wed, 14 Aug 2019 07:11:09 +0000 (07:11 +0000)
commitd4c50f7326a063e073b380c4a7a5c10dd02a5e5d
tree5fe0fdda28487db63f129db4481b4df1153b0277
parentafd493ea2b6517ff7a74851b86f3f977470e80e6
[NewPM][PassInstrumentation] IR printing support from clang driver

Summary: https://reviews.llvm.org/D50923 enabled the IR printing support for the new pass manager, but only for the case when `opt` tool is used as a driver. This patch is to enable the IR printing when `clang` is used as a driver.

Reviewers: fedor.sergeev, philip.pfaffe

Subscribers: cfe-commits, yamauchi, llvm-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D65975

llvm-svn: 368804
clang/lib/CodeGen/BackendUtil.cpp
clang/test/Misc/printer.c [new file with mode: 0644]