X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FLiveStackAnalysis.cpp;h=8a6ac251ab2d9da6cce9648c1c6d7a9b5377da99;hb=6de0a12927845ca49cd5cb1da9206fe503b565ec;hp=4c01e19ae068bac1345f5b836d2f098759d7ad96;hpb=9f85dccfc64b5f0b0c63ddfa0a42d8615aa1fcb3;p=oota-llvm.git diff --git a/lib/CodeGen/LiveStackAnalysis.cpp b/lib/CodeGen/LiveStackAnalysis.cpp index 4c01e19ae06..8a6ac251ab2 100644 --- a/lib/CodeGen/LiveStackAnalysis.cpp +++ b/lib/CodeGen/LiveStackAnalysis.cpp @@ -50,7 +50,7 @@ void LiveStacks::releaseMemory() { } bool LiveStacks::runOnMachineFunction(MachineFunction &MF) { - TRI = MF.getTarget().getSubtargetImpl()->getRegisterInfo(); + TRI = MF.getSubtarget().getRegisterInfo(); // FIXME: No analysis is being done right now. We are relying on the // register allocators to provide the information. return false; @@ -81,7 +81,7 @@ void LiveStacks::print(raw_ostream &OS, const Module*) const { int Slot = I->first; const TargetRegisterClass *RC = getIntervalRegClass(Slot); if (RC) - OS << " [" << RC->getName() << "]\n"; + OS << " [" << TRI->getRegClassName(RC) << "]\n"; else OS << " [Unknown]\n"; }