[llvm-commits] [llvm] r159726 - /llvm/trunk/lib/CodeGen/MachineFunctionPrinterPass.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Jul 4 16:53:19 PDT 2012
Author: stoklund
Date: Wed Jul 4 18:53:19 2012
New Revision: 159726
URL: http://llvm.org/viewvc/llvm-project?rev=159726&view=rev
Log:
Print SlotIndexes when available for -print-machineinstrs.
Modified:
llvm/trunk/lib/CodeGen/MachineFunctionPrinterPass.cpp
Modified: llvm/trunk/lib/CodeGen/MachineFunctionPrinterPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineFunctionPrinterPass.cpp?rev=159726&r1=159725&r2=159726&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineFunctionPrinterPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineFunctionPrinterPass.cpp Wed Jul 4 18:53:19 2012
@@ -14,6 +14,7 @@
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineFunction.h"
+#include "llvm/CodeGen/SlotIndexes.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Debug.h"
@@ -42,7 +43,7 @@
bool runOnMachineFunction(MachineFunction &MF) {
OS << "# " << Banner << ":\n";
- MF.print(OS);
+ MF.print(OS, getAnalysisIfAvailable<SlotIndexes>());
return false;
}
};
More information about the llvm-commits
mailing list