From 0f8d2d6396fd5f8a35c2dc7954bdb8acff8dc884 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 10 May 2016 04:51:07 +0000 Subject: [PATCH] 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 --- tools/llc/llc.cpp | 1 + 1 file changed, 1 insertion(+) 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()) -- 2.50.1