X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FMIRPrinter.cpp;h=9081e660d106c872d600e7f635525fdfb4153b05;hb=848219ca612e5488982f23c37c7459aeedff77e3;hp=bfcc56f680e8127cea2504492ae34145196a49e1;hpb=c0e64ada5c1ec6bf44319403fc94a2f3612c02ae;p=oota-llvm.git diff --git a/lib/CodeGen/MIRPrinter.cpp b/lib/CodeGen/MIRPrinter.cpp index bfcc56f680e..9081e660d10 100644 --- a/lib/CodeGen/MIRPrinter.cpp +++ b/lib/CodeGen/MIRPrinter.cpp @@ -28,6 +28,7 @@ #include "llvm/IR/Module.h" #include "llvm/IR/ModuleSlotTracker.h" #include "llvm/MC/MCSymbol.h" +#include "llvm/Support/Format.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/YAMLTraits.h" @@ -474,11 +475,13 @@ void MIPrinter::print(const MachineBasicBlock &MBB) { if (!MBB.livein_empty()) { OS.indent(2) << "liveins: "; bool First = true; - for (unsigned LI : MBB.liveins()) { + for (const auto &LI : MBB.liveins()) { if (!First) OS << ", "; First = false; - printReg(LI, OS, TRI); + printReg(LI.PhysReg, OS, TRI); + if (LI.LaneMask != ~0u) + OS << format(":%08X", LI.LaneMask); } OS << "\n"; HasLineAttributes = true;