switch PPC to a simplified MCInstLowering model.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119074 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 5ec6f44..4577232 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -20,7 +20,6 @@
 #include "PPC.h"
 #include "PPCPredicates.h"
 #include "PPCTargetMachine.h"
-#include "PPCMCInstLower.h"
 #include "PPCSubtarget.h"
 #include "llvm/Analysis/DebugInfo.h"
 #include "llvm/Constants.h"
@@ -59,7 +58,9 @@
 // This option tells the asmprinter to use the new (experimental) MCInstPrinter
 // path.
 static cl::opt<bool> UseInstPrinter("enable-ppc-inst-printer",
-                                    cl::ReallyHidden);
+                                    cl::ReallyHidden
+                                    //, cl::init(true)
+                                    );
 
 namespace {
   class PPCAsmPrinter : public AsmPrinter {
@@ -553,8 +554,6 @@
 ///
 void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
   if (UseInstPrinter) {
-    PPCMCInstLower MCInstLowering(OutContext, *Mang, *this);
-    
     // Lower multi-instruction pseudo operations.
     switch (MI->getOpcode()) {
     default: break;
@@ -562,7 +561,7 @@
     }
 
     MCInst TmpInst;
-    MCInstLowering.Lower(MI, TmpInst);
+    LowerPPCMachineInstrToMCInst(MI, TmpInst, *this);
     OutStreamer.EmitInstruction(TmpInst);
     return;
   }