[WholeProgramDevirt][NewPM] Add NPM testing path to match legacy pass
authorArthur Eubanks <aeubanks@google.com>
Wed, 30 Sep 2020 16:22:18 +0000 (09:22 -0700)
committerArthur Eubanks <aeubanks@google.com>
Thu, 1 Oct 2020 00:27:37 +0000 (17:27 -0700)
commit460dda071e091df3b5584f21954c9209e7334c50
tree0d7041d7522631dd3437ba9e652b7b0d34ebccc5
parent4ab45cc2260d87f18e1b05517d5d366b2e754b72
[WholeProgramDevirt][NewPM] Add NPM testing path to match legacy pass

The legacy pass's default constructor sets UseCommandLine = true and
goes down a separate testing route. Match that in the NPM pass.

This fixes all tests in llvm/test/Transforms/WholeProgramDevirt under NPM.

Reviewed By: ychen

Differential Revision: https://reviews.llvm.org/D88588
llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
llvm/test/Transforms/WholeProgramDevirt/import.ll