llc: Print+Verify machine function after loading it

In -run-pass mode verify/print machine function immediately after
loading the .mir file if -verify-machineinstr/-print-machineinstrs
option is specified.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269014 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matthias Braun 2016-05-10 04:51:07 +00:00
parent 07636808ac
commit 0f8d2d6396

View File

@ -378,6 +378,7 @@ static int compileModule(char **argv, LLVMContext &Context) {
PM.add(TPC);
LLVMTM.addMachineModuleInfo(PM);
LLVMTM.addMachineFunctionAnalysis(PM, MIR.get());
TPC->printAndVerify("");
Pass *P;
if (PI->getTargetMachineCtor())