aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-14 21:12:33 +0000
committerChris Lattner <sabre@nondot.org>2010-11-14 21:12:33 +0000
commita7217c824d512d6a80fbe97b82f4c2e15ec2a338 (patch)
treea2bd1efa93654903564459984a494dbdf831deee /lib/Target/PowerPC/PPCAsmPrinter.cpp
parent55d02f3a138badd5b1f96240b4d4b416d9026e2c (diff)
switch PPC to a simplified MCInstLowering model.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCAsmPrinter.cpp')
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 5ec6f44395..4577232f3b 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 @@ using namespace llvm;
// 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::printPredicateOperand(const MachineInstr *MI, unsigned OpNo,
///
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 @@ void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
}
MCInst TmpInst;
- MCInstLowering.Lower(MI, TmpInst);
+ LowerPPCMachineInstrToMCInst(MI, TmpInst, *this);
OutStreamer.EmitInstruction(TmpInst);
return;
}