From a02bbe95beb99eee84334f728ab209c7390cd4ba Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Mon, 13 Sep 2010 18:25:42 +0000 Subject: [PATCH] trailing whitespace llvm-svn: 113768 --- lib/Target/ARM/ARMMCInstLower.cpp | 28 ++++++++++++++-------------- lib/Target/ARM/ARMMCInstLower.h | 6 +++--- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/Target/ARM/ARMMCInstLower.cpp b/lib/Target/ARM/ARMMCInstLower.cpp index ab2b06b6078..5d840be46b3 100644 --- a/lib/Target/ARM/ARMMCInstLower.cpp +++ b/lib/Target/ARM/ARMMCInstLower.cpp @@ -34,7 +34,7 @@ const ARMSubtarget &ARMMCInstLower::getSubtarget() const { MachineModuleInfoMachO &ARMMCInstLower::getMachOMMI() const { assert(getSubtarget().isTargetDarwin() &&"Can only get MachO info on darwin"); - return AsmPrinter.MMI->getObjFileInfo(); + return AsmPrinter.MMI->getObjFileInfo(); } #endif @@ -45,7 +45,7 @@ GetGlobalAddressSymbol(const MachineOperand &MO) const { default: assert(0 && "Unknown target flag on GV operand"); case 0: break; } - + return Printer.Mang->getSymbol(MO.getGlobal()); } @@ -56,7 +56,7 @@ GetExternalSymbolSymbol(const MachineOperand &MO) const { default: assert(0 && "Unknown target flag on GV operand"); case 0: break; } - + return Printer.GetExternalSymbolSymbol(MO.getSymbolName()); } @@ -67,13 +67,13 @@ GetJumpTableSymbol(const MachineOperand &MO) const { SmallString<256> Name; raw_svector_ostream(Name) << Printer.MAI->getPrivateGlobalPrefix() << "JTI" << Printer.getFunctionNumber() << '_' << MO.getIndex(); - + #if 0 switch (MO.getTargetFlags()) { default: llvm_unreachable("Unknown target flag on GV operand"); } #endif - + // Create a symbol for the name. return Ctx.GetOrCreateSymbol(Name.str()); } @@ -83,29 +83,29 @@ GetConstantPoolIndexSymbol(const MachineOperand &MO) const { SmallString<256> Name; raw_svector_ostream(Name) << Printer.MAI->getPrivateGlobalPrefix() << "CPI" << Printer.getFunctionNumber() << '_' << MO.getIndex(); - + #if 0 switch (MO.getTargetFlags()) { default: llvm_unreachable("Unknown target flag on GV operand"); } #endif - + // Create a symbol for the name. return Ctx.GetOrCreateSymbol(Name.str()); } - + MCOperand ARMMCInstLower:: LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const { // FIXME: We would like an efficient form for this, so we don't have to do a // lot of extra uniquing. const MCExpr *Expr = MCSymbolRefExpr::Create(Sym, Ctx); - + #if 0 switch (MO.getTargetFlags()) { default: llvm_unreachable("Unknown target flag on GV operand"); } #endif - + if (!MO.isJTI() && MO.getOffset()) Expr = MCBinaryExpr::CreateAdd(Expr, MCConstantExpr::Create(MO.getOffset(), Ctx), @@ -116,10 +116,10 @@ LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const { void ARMMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const { OutMI.setOpcode(MI->getOpcode()); - + for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { const MachineOperand &MO = MI->getOperand(i); - + MCOperand MCOp; switch (MO.getType()) { default: @@ -155,8 +155,8 @@ void ARMMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const { MO.getBlockAddress())); break; } - + OutMI.addOperand(MCOp); } - + } diff --git a/lib/Target/ARM/ARMMCInstLower.h b/lib/Target/ARM/ARMMCInstLower.h index b81a30690ce..f6a8129e142 100644 --- a/lib/Target/ARM/ARMMCInstLower.h +++ b/lib/Target/ARM/ARMMCInstLower.h @@ -24,7 +24,7 @@ namespace llvm { class MachineOperand; class Mangler; //class ARMSubtarget; - + /// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst. class LLVM_LIBRARY_VISIBILITY ARMMCInstLower { MCContext &Ctx; @@ -35,7 +35,7 @@ class LLVM_LIBRARY_VISIBILITY ARMMCInstLower { public: ARMMCInstLower(MCContext &ctx, Mangler &mang, AsmPrinter &printer) : Ctx(ctx), Mang(mang), Printer(printer) {} - + void Lower(const MachineInstr *MI, MCInst &OutMI) const; //MCSymbol *GetPICBaseSymbol() const; @@ -44,7 +44,7 @@ public: MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const; MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const; MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const; - + /* private: MachineModuleInfoMachO &getMachOMMI() const;