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.

llvm-svn: 269014
This commit is contained in:
Matthias Braun 2016-05-10 04:51:07 +00:00
parent 0663b61e1a
commit 94d6b57130

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())