From: Vikram S. Adve Date: Mon, 22 Oct 2001 13:52:03 +0000 (+0000) Subject: Use class MachineCodeForMethod to print machine code. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c023be29a4efbcea096427029a610c12e6c2b2ac;p=oota-llvm.git Use class MachineCodeForMethod to print machine code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@948 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index 43ea5a5cd0f..c99f1a1c550 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp @@ -867,7 +867,7 @@ void PhyRegAlloc::allocateRegisters() updateMachineCode(); if (DEBUG_RA) { - PrintMachineInstructions(Meth); + Meth->getMachineCode().dump(); printMachineCode(); // only for DEBUGGING } } diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp index 43ea5a5cd0f..c99f1a1c550 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp @@ -867,7 +867,7 @@ void PhyRegAlloc::allocateRegisters() updateMachineCode(); if (DEBUG_RA) { - PrintMachineInstructions(Meth); + Meth->getMachineCode().dump(); printMachineCode(); // only for DEBUGGING } }