]> granicus.if.org Git - llvm/commitdiff
llc: Print+Verify machine function after loading it
authorMatthias Braun <matze@braunis.de>
Tue, 10 May 2016 04:51:07 +0000 (04:51 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 10 May 2016 04:51:07 +0000 (04:51 +0000)
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

tools/llc/llc.cpp

index 300275a5e346ebdec1f8d25608e61d9468e0e7a9..e219c948d26be815f1824ce6f61e42a4fd59f66f 100644 (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())