summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit5c1b0cdec2a2f37818c4ab441e256a7d36837728 (patch)
tree48be4689f85ed5c2daf3614a9188bf35e11457e7 /llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
parenta7d0bed3368b809ad47d7113cad82ca5c3a59957 (diff)
downloadbcm5719-llvm-5c1b0cdec2a2f37818c4ab441e256a7d36837728.tar.gz
bcm5719-llvm-5c1b0cdec2a2f37818c4ab441e256a7d36837728.zip
switch PPC to a simplified MCInstLowering model.
llvm-svn: 119074
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 5ec6f44395d..4577232f3b8 100644
--- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud