From: Matthias Braun Date: Tue, 10 May 2016 04:51:07 +0000 (+0000) Subject: llc: Print+Verify machine function after loading it X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f8d2d6396fd5f8a35c2dc7954bdb8acff8dc884;p=llvm 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 --- diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 300275a5e34..e219c948d26 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -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())