summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-05-10 04:51:07 +0000
committerMatthias Braun <matze@braunis.de>2016-05-10 04:51:07 +0000
commit94d6b571309a700f739f05dd97e6959932d5f871 (patch)
tree2cd0d094293bdfd684185ac1ac59592f1872814f /llvm/tools
parent0663b61e1afe380205c48548419d032c68b7f15b (diff)
downloadbcm5719-llvm-94d6b571309a700f739f05dd97e6959932d5f871.tar.gz
bcm5719-llvm-94d6b571309a700f739f05dd97e6959932d5f871.zip
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
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llc/llc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index 300275a5e34..e219c948d26 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/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())
OpenPOWER on IntegriCloud